On 01/06/2013 at 21:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
How do I add a tag to an object? I have no problems cloning tags, like this.
BaseTag* tagFound = someObject->GetFirstTag();
BaseTag* newTag = (BaseTag* )tagFound->GetClone(COPYFLAGS_0, NULL);
anotherObject->InsertTag(newTag, NULL);
But how do I
a) Insert one of the C4D built in tags, like the Constraint tag
b) Insert one of my own tags.
For (a) I just do not know. For (b) I get error messages. Mainly because my tags are
class MySpecialTag : public TagData
and I get complaints about MySpecialTag not being a BaseTag*.
Any ideas?