Looking for a node during import

Looking for a node during import

Anonymous
Not applicable
342 Views
1 Reply
Message 1 of 2

Looking for a node during import

Anonymous
Not applicable
When I create a new node inside an import plugin I can't find it with GetINodeByName:

ImpInterface* i;
Interface* gi;
...
ImpNode *node = i->CreateNode();
node->SetName("myNode");
i->AddNodeToScene(node);
...
INode* pNode = gi->GetINodeByName("myNode");

pNode is NULL, why? What I'd really like to do is call a MaxScript from the plugin that would do additional operations on the node, but it doesn't work, because it seems the node is not in the scene until the end of the import procedure, is this true?

Fabio
0 Likes
343 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Update: if I create the node with gi->CreateObjectNode(...) it works, so this is the way I'm going, skipping the ImpNode and ImpInterface the import works anyway... if someone knows drawbacks I'd like to know.

Fabio
0 Likes