Created
March 21, 2015 02:36
-
-
Save bboyle/75973880b9ac52e8d497 to your computer and use it in GitHub Desktop.
Open/close Maya graph editor (MEL script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (`window -q -ex graphEditor1Window`) | |
deleteUI graphEditor1Window; | |
else | |
tearOffPanel "Graph Editor" "graphEditor" true; |
Another way:
import maya.cmds as cmds
for panel in cmds.getPanel(sty="graphEditor") or []:
cmds.scriptedPanel(panel, e=True, to=True)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful! :)