THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2006 at 09:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.52
Platform: Windows ;
Language(s) : C++ ;
---------
I want to write a Tag that, after being applied,
adds an XPresso-Tag to the same object.
Now I got a bunch of question:
- Writing a TagData Plugin (like lookatcamera) works. Why do I need
a class derived from PluginTag anyways? The concept is unclear to me.
- Where can I get the BaseObject(s), to which the Tag
is (are) connected? Execute(*tag, *doc, *op, ...) :
op delivers NULL. I need it for adding the XPresso.
- What's the best way to add an XPresso-Tag?
Build it in the Init()-call of my TagData-class like:
XPressoTag *xpTag = XPressoTag::Alloc();
GvNodeMaster *nodeMaster = xpTag->GetNodeMaster();
GvNode *node = nodeMaster->CreateNode(nodeMaster->GetRoot(),
ID_OPERATOR_OBJECT, NULL, -1, -1);
Or create a class derived from XPressoTag?
I would like to hide that XPresso from the OM with PLUGINFLAG_HIDE
so I can modify object positions with an invisible hand.
- Is it possible to load an XGroup for my XPresso at once (instead of building
the graph dynamically) when I create the Tag?
And last: Is there another more complex example of a TagPlugin (TagData?)
than lookatcamera? I found a topic "How to get TagData from PluginTag".
I'm afraid I need even more to handle this.
For any help, hints or links
Thanks in advance,
Sascha