THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/06/2004 at 03:37, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi all,
I've got a custom plugin tag which inherits from TagData.
In its GUI in the attrib panel it has some buttons which trigger methods. These methods need to know the parent object for the tag, but I can't figure out how to get it.
The Execute method isn't called for a button press.
Get() returns the current tag.
Get()->GetUp() returns NULL
Get()->GetListHead()->GetFirst() returns the first tag for the object.
I note that BaseTag has a GetObject() method, but I don't really understand the relationship between BaseTag and TagData. (I tried inheriting from both, but the compiler really didn't like that)
So, how do I retrieve the object containing the tag?
I'm sure there must be an easy way, but I can't find it...
Cheers - Steve