[Maya2osg-users] Preview command and pre-export command
Status: Alpha
Brought to you by:
jtaibo
From: Jean-Sébastien G. <jea...@cm...> - 2011-10-17 14:32:56
|
Hi all, I noticed that the "preview" button doesn't execute pre- and post-export scripts, and in fact in maya2osg_export.mel there is this comment: // NOTE: If we do really "Export and Preview" (i.e., writing to the specified file path not to a temporary one) // then we should call pre- and post-export scripts. // REMOVE THIS COMMENT WHEN FIXED! I need the preview to run pre-export scripts so that the preview really corresponds to what will be exported. So I tried to fix this. I just added if ( `optionVar -query "maya2osg_preExportEnable"` ) eval ( `optionVar -query "maya2osg_preExportCommand"` ); where there was "// PRE EXPORT COMMAND" comment, and the analogous code for post-export where there was "// POST EXPORT COMMAND" comment. This seems to work. Is that all that's needed? I noticed I'm pretty out of date compared to the current trunk of maya2osg... The maya2osg_export.mel has changed a lot and I can't find where to make this change in the current version. Has this already been fixed? Thanks, J-S -- ______________________________________________________ Jean-Sébastien Guay jea...@cm... http://www.cm-labs.com/ http://whitestar02.dyndns-web.com/ |