Try calling it in an executeDeferred wrapper. It's probably that various 
requirements are not loaded at the time the userSetup is parsed and run. Using 
the executeDeferred will ensure Maya has finished doing everything it needs to 
do before running your code, and thus is generally the safest option for 
anything GUI related.

Mike.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Panupat 
Chongstitwattana
Sent: 03 May 2012 10:03
To: [email protected]
Subject: [Maya-Python] Launch pyqy ui when starting up Maya?

Is it possible to have certain pyqt UI opens when Maya launches?

I tried to add the command to userSetup.py but it doesn't seem to do anything.
--
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