Okay, I realized that all it takes is manually advancing in code (accomplished
through setting a timer) and setting the keyframes at each moment. Works like a
charm - no more crashing. Also, there's no need to hard-code the timeline.
Here's what I came up with (recordMotion is called by a timer in the iOS code):
def recordMotion():
cmds.setKeyframe('drawLoc', at='translateX')
cmds.setKeyframe('drawLoc', at='translateY')
cmds.setKeyframe('drawLoc', at='translateZ')
cmds.currentTime((cmds.currentTime(query=True))+1)
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.