UI: Custom sidebar button

35 views
Skip to first unread message

Chris Hawkes

unread,
Dec 1, 2017, 6:49:24 AM12/1/17
to Python Programming for Autodesk Maya
I have a series of tools I frequently use combined into a single python UI. 

How can I create a custom sidebar button to toggle this window on and off? These are the buttons in the top right of the main UI that toggle the channel box/ modelling toolkit etc.

On top of that, how can I allow my window to dock in a tab next to the channel box / attribute editor etc. The standard dockControl sits to the side in a separate panel.

Thanks for the help.

Michael Boon

unread,
Dec 6, 2017, 5:46:40 PM12/6/17
to Python Programming for Autodesk Maya
I'm not sure about creating a toggle button.
For your second question though, I think you can do that with any dockable window. In Maya 2018 (at least) I can grab the Attribute Editor and dock it next to the Channel Box, for example. I guess I'm misunderstanding. Maybe a screenshot would help?
Reply all
Reply to author
Forward
0 new messages