Re: [Maya2osg-users] Transform nodes
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-07-03 21:27:27
|
Hi guys, I have worked on the config system to simplify adding arguments ( currently only boolean ). Its one step towards simplifying UI creation as well. J-S, if you could wait till wednesday, I plan to add a wiki for UI creation. But basically all you have to do is adding only two commands at two places in the maya2osg_export.mel script. One is around line 180 where you need to add the argument you want to export to the export command. The other one is for the UI, buildCheckBox( "argument" , "Label" , "extraLabel" ) ; ( e.g. lin 607 ) but I will change this till wednsday into another command name, and add some similar commands. and you just need to place it there where it into the Frame where you want to have it. The command buildFrameLayout builds ... well ... a frameLayout with name. I created an Optimize Frame, where you can place additional flags, I added buildCheckBox( "flattenStaticTransform" , "Flatten Static XForm" , "" ) ; To be able to add this flag to the config.cpp, you need to initialize it in the bool map, and that's all. I've done this at line 74. This should be already simpler. I'll explain in detail on the wiki. Cheers, PP > Hi Javier, > >> Yes, I think that exposing the Optimizer flags to the export GUI and >> apply it after exporting is a great idea. Maybe we can make an >> "Optimizer" section in the GUI instead of adding it to the geometry >> section. > Agreed. I'll try to work on this next week. I'll probably come running > with questions about how to expose things in the GUI and save them in > Maya, because I looked at the code before and it gave me headaches :-) > > Thanks, > > J-S |