maya 2017 now uses workspaceControls instead of dockControl

maya 2017 now uses workspaceControls instead of dockControl

Anonymous
Not applicable
2,066 Views
3 Replies
Message 1 of 4

maya 2017 now uses workspaceControls instead of dockControl

Anonymous
Not applicable

Hi there,

 

On Maya 2016 I was using dockControl to dock my anim tools in the same area as the channelBox and Attribute Editor. But this no longer works with 2017.

 

So I have been using workspaceControl and i can load my tool up fine, but I want to dock it on the same tabs as the channelbox and Attribute editor.

 

The flag '-dockToMainWindow "right" 1' just creates a new panel on the far right. Then I have ot manual dock the panel into the channel and attr tabs.

 

So preferably I could use this flag: -dockToPanel "??PanelName??" "right" 1 but unfortunately I have no idea what the panel is called that the channel box and attr editor reside in?

 

How would I go about finding out the panel name? Or simply..can you please tell me the panel name of the channelBox and Attr editor so I can attach my tools.

 

Thanks

0 Likes
2,067 Views
3 Replies
Replies (3)
Message 2 of 4

vijaya.prakash
Alumni
Alumni

Hi,

 

One of our Engineer suggested the following technique. I hope it will help you.

 

If you want the control to be in the same tab bar as the Channel Box and Attribute Editor you have to use the –tabToControl flag. The getUIComponentDockControl command can be used to obtain the workspace control name of those particular UI:

 

 

string $channelsLayersDockControl = getUIComponentDockControl(“Channel Box / Layer Editor”, false);
workspaceControl –e –tabToControl $channelsLayersDockControl -1 yourWorkspaceControl;

 

Thanks,

Vijaya Prakash.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Sounds like this is what I need, but unfortunately I get an error when trying to run this line:

 

string $channelsLayersDockControl = getUIComponentDockControl(“Channel Box / Layer Editor”, false);

 

// Error: string $channelsLayersDockControl = getUIComponentDockControl(“Channel Box / Layer Editor”, false); //
// Error: Line 1.63: Syntax error //

 

Thanks

Leon

0 Likes
Message 4 of 4

vijaya.prakash
Alumni
Alumni

Hi,

 

The quote (") is the problem. Please use the below MEL code.

 

string $channelsLayersDockControl = getUIComponentDockControl("Channel Box / Layer Editor", false);

 

Thanks,

Vijaya Prakash.

0 Likes