Re: [Maya2osg-users] osgpreview, UI and flags
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-05-29 19:49:08
|
Hi all, answering to my own post, as most of the stuff is implemented. > I would like to add an optionMenu to the preview command textfield, > which changes the behavior of the command field, with these options: > > Mel: > current behaviour > > Pyth: > corresponding Python script not done, don`t know if required at all, will implement on request. > Exec: > which would take an os command ( like "osgviewer --flags file" ) without > the need of "exec" infront of it > > Flag: > this would call osgpreview with flags entered inside the textfield, > overriding those hardcoded in the export script > > Edit: ( maybe ) > this would pop up a bigger window for editing text, in the case one of > the above needs more space Same as "Pyth" Javier, you might want to test the behavior of the new options. Have one suggestion to the preview command, that one should be able to pass the count of lights as argument. This would enable GL_Lights up to 8 or turn off GL_Lighting, if no light is present in the test scen. Silly me, was searching quite long for an error, because I couldn't see my content in the preview window. But I just had no Lights created. So with passing 0 lights to the preview command would eliminte such an issue. For the preview command I'm suggesting one more shelf Button, which does the preview based on the settings in the Export Window ( without it being opened of course ). The other preview shelf button should still have default behavior. What do you think ? The preview command an pre/post export mel have annotations that explain the usage of Variables, but you need to turn on Maya Options - Interface - Help - Popup Help - Tooltips. Think I should activate it when opening the UI, and restore window clos. Will do later. The Maya Export All / Selection Options Script has a Bug when cahnging the export file type, couldn't fix this, is on todo list. Polygon Options and Polygon and Export UI Wiki is the next, then, finally, skining. Here is my submission coomment, which explains some more. Export UI Tweaks: Added Flag to turn on/off overwrite confirm dialog Added "Browse Path" command to popup menu of filepath Merged Filename and Filetype into one textField and one optionMenu created optionMenu for preview mode - Off : original preview behavior - Mel : evaluates expected an mel command - Exec : executes expected system command - Flag : overwrites default flags of inbuilt preview command added Variables $tmp and $cam which are substituted with full temp filename and temp camera filename added annotations explaining behavior when hovering mouse pointer above textField ( Maya Option Tooltips must be enabled !!! ) added $full Variable to pre and post export commands and annotation added "clear" command popup menu to custom GLSL textFields Cheers, PP |