If I use PySide as my main UI, can I fire up cmds.fileDialog2 instead of 
QtGui.QFileDialog and send the result back to PySide UI? What's the 
advantage of each you think?


On Thursday, June 4, 2015 at 12:49:42 PM UTC+7, Joe Weidenbach wrote:
>
> You will basically need to come up with a desired UI layout.  For a file 
> dialog, you could do something similar to this:
>
> import os.path
>
> import maya.cmds as cmds
>
> homeDir = os.path.expanduser("~")
>
> filter = "Jpeg Images (*.jpg)"
> filePath = cmds.fileDialog2(cap="Choose File Save Directory", 
> startingDirectory=homeDir,
>                             fileFilter=filter, fileMode=0)
>                             
> print filePath[0]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f5178341-c8fc-420d-b5f2-dfad00e1a556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to