Skip to content

Instantly share code, notes, and snippets.

@bboyle
Created March 21, 2015 02:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bboyle/75973880b9ac52e8d497 to your computer and use it in GitHub Desktop.
Save bboyle/75973880b9ac52e8d497 to your computer and use it in GitHub Desktop.
Open/close Maya graph editor (MEL script)
if (`window -q -ex graphEditor1Window`)
deleteUI graphEditor1Window;
else
tearOffPanel "Graph Editor" "graphEditor" true;
@internetimagery
Copy link

Useful! :)

@internetimagery
Copy link

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