[Maya API] is there a function call to Archive the scene?

[Maya API] is there a function call to Archive the scene?

Anonymous
Not applicable
773 Views
3 Replies
Message 1 of 4

[Maya API] is there a function call to Archive the scene?

Anonymous
Not applicable

I'm looking at a fast way to include external content (Mainly textures for our custom material) for our outsourcing teams, and 'File -> Archive scene' (Archive scene documentation) seems to be the fastest solution. I'm wondering if I can access it through the C++ API? or should I just use a MGlobal->MelCommand() Or should I just make my own import / export for textures? 

0 Likes
Accepted solutions (1)
774 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution
0 Likes
Message 3 of 4

Anonymous
Not applicable

While it's the proper member function, it's not populating 'files':

 

  MPxNode node; 
  MStringArray files = node.getFilesToArchive();
  for(unsigned int i = 0; i < files.length(); i++)
    MGlobal::displayInfo(files[i]);
0 Likes
Message 4 of 4

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I think you have misunderstood this function. It is called by Maya when the scene is being archived. Most of file related function in API are just wrappers of file command, using MEL will be more straight forward.

 

Yours,

Li

0 Likes