Dave Girard's 101 Autodesk® Maya® Tips is now available in Kindle, interactive iPad edition and DRM-free EPUB/PDF editions. Work faster, cry less. Read more about the ebook.




Follow cgbeige on Twitter

Topics by tag:



Recently published articles by Dave G:



Free downloads by Dave G:



Mac OS X-only downloads:

Dock (Almost) Any Floating Window in Maya 2011 and Above

Quick tip to dock your floating windows in Maya (requires later Qt versions). Find the name of your active windows in Maya by entering this in the MEL command line:

lsUI -windows;

Within that list is all the active windows. With the Script Editor and PoseMan open, the returned result is // Result: MayaWindow window1 scriptEditorPanel1Window //

So we can assume PoseMan is window1. Plug the window name into the following code, with the last two words representing the window name and the unique dock name, and save it to a shell or hotkey:

dockControl -area top -content window1 poseman;

and voilà:

From then on the name “poseman” from the script will appear in your UI docks when you right click docked tabs:

It can be closed and reopened from there.

This isn’t without flaws, unfortunately. Some windows don’t work right when you dock them and PoseMan is one that you have to be careful with by loading pose files before docking or else it won’t be able to find the parent window. I also say “almost” any window in the title because some apps like V-Ray’s VFB are not MEL/Python windows, they are Qt based and it doesn’t work for those. Still, it can be handy.

2 notes | Permalink

  1. stupid-- reblogged this from polygonspixelsandpaint
  2. polygonspixelsandpaint posted this