Hey guys,
I’m using the pymel method to dock my pyside widget in Maya.
Something like this in the init method of a class inherited by QMainWindow:
self.floatingLayout = pm.paneLayout( configuration = 'single', w=568, parent=mayaMainWindow())
pm.dockControl( 'NameOfWindowDockObject', aa=['right', 'left'], a='right', fl=False, con=self.floatingLayout, label='Title of Window', w=568 )
pm.control( 'windowObjectName', e=True, parent=self.floatingLayout )
Which works fine in Maya 2013 and Maya 2016, in a sense that the Window is Docked, and appears on the right side in Maya when i run win.show()
In Maya 2013, the new tab generated on the dock is activated. Meaning it shows up in replacement of what was currently showing by default. The user doesn’t have to select the tab to see the tool trying to show.
However, In Maya 2016, the activation of the tool/window trying to show is not replaced anymore. The user must manually select the tab in the dock on the right for it to show up. Something changed in maya 2016, and now we have to somehow activate the window a different way. There must be a way when I run win.show()
Does anyone know a way to do this?
If i am not clear, i will elaborate more. please let me know. thanks
-Dan
