Hi thank you so much for your response I figured it out and another person helped me with that But still one small error is there it seems hard for me. Any Idea? ERROR ( // Error: line 12: Flags must come before objects: -ed ) { string $sn = `file -q -sn`;string $cfp = `dirname( $sn )`; if (`window -exists ScreenCapture`)…
Your filefilter is:Maya ASCII (*.ma);) When it should be, loose the extra ) Maya ASCII (*.ma); Working example code:// a function to be called when the button gets clicked.<br> proc func() {<br> string $basicFilter = "Maya ASCII (*.ma);; Jpeg (*.jpeg *jpg);";<br> string $result[] = `fileDialog2 -fileFilter $basicFilter…
Just messing around with the dialog it seems like not working. fileDialog2 -fileFilter "Maya ASCII (*.ma);)" -cap "Browse" -optionsUICreate "MyCustomOptionsUISetup"; global proc MyCustomOptionsUISetup(string $parent){setParent $parent;$parent = `scrollLayout -childResizable true`; // generate some UI which will show up in…