Hi all,
I'm new to this group and I can see there is a lot of knowledge here.
I have a UI which is using PySide2
The UI is loaded like this:
import sys
sys.path.append("V:/projects/coding/teamShirts")
from maya import OpenMayaUI as omui
from shiboken2 import wrapInstance
import teamSelector_main
from PySide2 import QtWidgets
reload(teamSelector_main)
ptr = omui.MQtUtil.mainWindow()
widget = wrapInstance(long(ptr), QtWidgets.QWidget)
d = teamSelector_main.TeamSelectorDialog(widget)
d.exec_()
The UI runs fine and does what I need, but it takes complete control of Maya. I cannot click anything in Maya until I have closed my UI.
My question is: How can I have my UI open and still be able to tumble in the viewport, select objects, etc.
I guess it's something to do with the 'parent' window, but I don't know.
Maya 2018
Many thanks!
Dan