gangshow2003
01-23-2011, 11:40 AM
Hey all,
Im trying to write a little script that means that when I select a key in the graph editor the time automatically updates to that frame so I can see my adjustments in the persp. At the moment when animating each time I adjust a key in the graph editor I have to also move the timeslider onto that frame so I can actually see my changes. I have -
import maya.cmds as cmds frame = cmds.keyframe( q=True, sl=True, tc=True);
cmds.currentTime( frame[1] );
I need this to do it everytime I select a key. At the moment I have to run it everytime which completely take the point out of it. How do I get this to run in the background constantly?
Does that make sense? Probably a noob question I know.
Cheers
Sim
Im trying to write a little script that means that when I select a key in the graph editor the time automatically updates to that frame so I can see my adjustments in the persp. At the moment when animating each time I adjust a key in the graph editor I have to also move the timeslider onto that frame so I can actually see my changes. I have -
import maya.cmds as cmds frame = cmds.keyframe( q=True, sl=True, tc=True);
cmds.currentTime( frame[1] );
I need this to do it everytime I select a key. At the moment I have to run it everytime which completely take the point out of it. How do I get this to run in the background constantly?
Does that make sense? Probably a noob question I know.
Cheers
Sim
