Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File referencing with "-option" flag not kept when saving

0 REPLIES 0
Reply
Message 1 of 1
hans.baldzuhn
213 Views, 0 Replies

File referencing with "-option" flag not kept when saving

Hi,

 

I have an issue with file referencing with a custom MPxFileTranslator plugin.

 

I'm currently working of a custom Alembic plugin for maya (working with the source code from the Alembic Group). I added several new option to the AbcImport command and I want to be able to use them with the file translator. 

 

The orignal Alembic code was completly ignoring the "const MString& optionsString" argument for the MPxFileTranslator::reader() method.

 

I'm now properly using it with the syntaxe -option "argument1=value2;argument2=value1".

The string is used to build a MArgList and I then call the MPxCommand::doIt() method.

 

It's working perfectly on both standar file opening and file referencing.

 

The issue comes when I save and quit the scene. The "-option" flag is not written to file. So when reopening the scene, the reference is recreated without any custom option. 

 

Is there any way to be able to keep this information when saving ?

Did anyone ever used the "-option" flag when creating a reference ?

 

Best,

Hans

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report