How to dock in 2017 ?


#1

I am trying to dock my window next to the channel box but I couldn’t find any help.

I found dockToPanel and dockToControl but no reference to the names of any panel or control

The only on that I understand and works is :

ctrl = pm.workspaceControl(name, dockToMainWindow=(‘right’, 1), label=“ManagerUI”

How to dock my window next to the channel box in 2017 ?


#2

I found this :

https://forums.autodesk.com/t5/maya-programming/maya-2017-now-uses-workspacecontrols-instead-of-dockcontrol/td-p/6687176

then tried this:

ctrl = pm.workspaceControl(name, r=True, tabToControl=('ChannelBoxLayerEditor', 1), label="ManagerUI")

Is there any reference or documentation to the names like ChannelBoxLayerEditor ?


#3

It’s not the most intuitive thing in the world and I had the same problems when we moved over to 2017. If you take a look at the Red9 StudioPack you’ll se the solution we used to dock into the channelBox. starts around line 588:

https://github.com/markj3d/Red9_StudioPack/blob/master/core/Red9_AnimationUtils.py

hope that helps

Mark