Beispiel #1
0
def getMayaWindow():
    if _pyside_ver == 1:
        ptr = omui.MQtUtil.mainWindow()
        if ptr is not None:
            return wrp(long(ptr), QMainWindow)
    elif _pyside_ver == 2:
        from pymel.core import ui
        return ui.Window('MayaWindow').asQtObject()
Beispiel #2
0
def getMayaWindow():
    ptr = omui.MQtUtil.mainWindow()
    if ptr is not None:
        return wrp(long(ptr), QMainWindow)