Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open/close Maya graph editor (MEL script)
if (`window -q -ex graphEditor1Window`)
deleteUI graphEditor1Window;
else
tearOffPanel "Graph Editor" "graphEditor" true;
@internetimagery

This comment has been minimized.

Copy link

internetimagery commented Jan 6, 2016

Useful! :)

@internetimagery

This comment has been minimized.

Copy link

internetimagery commented Jan 6, 2016

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
You can’t perform that action at this time.