mayaAnimation

Node Reference

Messages

messageparametersdescriptionexample
file(filename)name of .anim fileloads a .anim filefile("bounce.anim")
start(clip number)integerstarts a clipstart(1)
stop() stops the currently playing clipstop()
speed(speed multiplier)floatchanges the speed of the animation. speed(0) paused
speed(1) normal speed
speed(.5) half speed
speed(-1) play in reverse
speed(2) play at twice normal speed
postInfinity ("looping type") "constant" : stop the animation at the end (don't loop)
"linear" : continue the animation curve in the current direction
"cycle" : loop
"cycleRelative" : loop, relative to the ending values of the animation
"oscillate" : play backwards and forwards through the animation
controls the looping behavior of the animation. More specifically, controls what the animation does when it gets to the end of its timeline. postInfinity("oscillate") // makes the clip loop backwards and forwards
preInfinity ("looping type") see postInfinity() just like postInfinity, but controls how the animation behaves when it goes past the beginning of the clip - for instance, speed(-1) will make the clip play backwards past its beginning point. preInfinity("cycle") makes the clip loop when played before its first keyframe
loop()true or falsesets both preInfinity and postInfinity to "cycle"loop(true)
oscillate sets both preInfinity and postInfinity to "oscillate"

(c) Ben Chang