[C++] I need to return the names of the nodes that were imported in the API

[C++] I need to return the names of the nodes that were imported in the API

Anonymous
Not applicable
384 Views
1 Reply
Message 1 of 2

[C++] I need to return the names of the nodes that were imported in the API

Anonymous
Not applicable

Looking at 'MFileIO::import()' there is no flag flag or reference to set to return the new scene. Maya returns the object name with the 'i' flag. Is there anything I can use to return the returned objects in the C++ API? Even when calling 'exicutePythonCommand'?

 

 

Screenshot_116.png

0 Likes
385 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I am afraid you have to call the mel command. MFileIO is a wrapper of file command. Please use MGlobal::executeCommand instead.

 

Yours,

Li

0 Likes