Graph Editor toggle script

Graph Editor toggle script

Anonymous
Not applicable
3,262 Views
6 Replies
Message 1 of 7

Graph Editor toggle script

Anonymous
Not applicable

I'm using this script below to open/close the Graph Editor, it works almost perfectly fine. But one thing I noticed that is each time the Graph Editor is toggled, Graph Editor window shifts a little bit to the right and down for a few pixels on the screen. Is there a way to add to the script so that each time I toggle it, the window stays exactly where I left it last time?

if (`window -q -ex graphEditor1Window`)
	deleteUI graphEditor1Window;
else
	tearOffPanel "Graph Editor" "graphEditor" true;
0 Likes
3,263 Views
6 Replies
Replies (6)
Message 2 of 7

zeroonestudio
Contributor
Contributor

sorry I can't help with the script but would binding it to a hotkey be useful? I have graph editor on @, dopesheet on # and trax on $ - works like a charm for me.

0 Likes
Message 3 of 7

Anonymous
Not applicable

@zeroonestudio wrote:

sorry I can't help with the script but would binding it to a hotkey be useful? I have graph editor on @, dopesheet on # and trax on $ - works like a charm for me.



I actually had it bind to one of my gaming mouse's extra button. Feels pretty neat to summon that graph from no where tbh. Makes my work flow smoother and it doesn't take too much space on the screen when I'm not touching it.

0 Likes
Message 4 of 7

mspeer
Consultant
Consultant

Hi!

I am not able to reproduce this, please add more details.

0 Likes
Message 5 of 7

Anonymous
Not applicable

@mspeer wrote:

Hi!

I am not able to reproduce this, please add more details.


Hi. So I recorded it in the link below. The Graph Editor slowly moves out of screen each time the script ran. I'm looking for a way to stop this from happening.

0 Likes
Message 6 of 7

Anonymous
Not applicable

if (`window -q -ex graphEditor1Window`)

deleteUI graphEditor1Window;

else

dR_DoCmd("graphEditorTGL")

 

 

this one is working 

Message 7 of 7

mcw0
Advisor
Advisor

The issue is "tearOffPanel".  If you just delete and reopen, it will stay in place.

0 Likes