THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2007 at 03:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Windows ;
Language(s) : C++ ;
---------
I want to restrict my Tag just to meshes (doesnt make any sense elsewhere)
What I am trying to do is checking the parent in during the Init.
I found a post with the same problem and tried to use the solution.
However my BaseObject is always NULL.
Are there any other methods to access the parent of a tag?
Thanks for any help
> _class p406SkinTag : public TagData
> {
> public:
> virtual Bool Init(GeListNode *node);
>
> virtual LONG Execute(PluginTag *tag, BaseDocument *doc, BaseObject *op, BaseThread *bt, LONG priority, LONG flags);
> static NodeData *Alloc(void) { return gNew p406SkinTag; }
> };
>
> Bool p406SkinTag::Init(GeListNode *node)
> {
> BaseTag* tag = static_cast<BaseTag*>(node);
> String name = tag->GetName();
> BaseObject* op = tag->GetObject();
>
>
> if(op && op->GetType() == Opolygon)
> return TRUE;
> return FALSE;
> }
> _