Message 1 of 2
Looking for a node during import

Not applicable
10-05-2007
04:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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