Running gui commands requires that maya actually be running in gui mode, 
otherwise it has nothing to generate the dialogs under. That is.. gui commands 
dont work from mayapy

If you need a completely standalone app that uses maya, then you would in fact 
need to design a PyQt app that uses mayapy as its interpreter. I have a tool 
like this actually as part of our pipeline between the art department and the 
TDs. Its a gui that takes illustrator files and custom parses and creates the 
geometry, and then saves the scene files.




On Dec 30, 2011, at 11:53 AM, Murphy Randle wrote:

> Hi there! 
> I'm trying to figure out the lightest way to provide a simple GUI for some 
> production scripts. We've been having some problems with PyQt on the 
> workstations, so I thought I might just use maya's built in GUI 
> functionalities through pymel.
> 
> The following code successfully makes and shows a new window when run from 
> within Maya:
> 
> from pymel.core import *
> win = window()
> win.show()
> 
> But if I run it from the command line, using the executable mayapy, the 
> function 
> window()
> Returns a boolean that is false. 
> 
> Is it impossible to show a GUI dialogue from within mayapy?
> I'm running currently on Mac Os X 10 Lion. Maya 2012.
> The workstations are Redhat 5 with Maya 2012.
> 
> 
> Thanks!
> Murphy
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to