Re: [Maya-Python] need help with userSetup.py

2016-02-15 Thread Mahmoodreza Aarabi
Hey man i suggest that use this method for running your window in maya: class YourClass(): def getMainWindow(): mainWindow = QtGui.QApplication.activeWindow() while True: lastWin = mainWindow.parent() if lastWin: mainWindow = lastWin else:

[Maya-Python] need help with userSetup.py and calling a script that is mainly a class.

2016-02-15 Thread md
Hey Guys, I am building my own Maya menu through userSetup.py ... I have written another python script which is basically just a pySide class. I want to call this script from the menu created in userSetup.py. There is no main function .. just the class that gets instantiated at the bottom of

[Maya-Python] need help with userSetup.py

2016-02-15 Thread md
Hey Guys, I am building my own Maya menu through userSetup.py ... I have written another python script which is basically just a pySide class. I want to call this script from the menu created in userSetup.py. There is no main function .. just the class that gets instantiated at the bottom of