jit.anim.drive - how to tell when a moveto or scaleto animation is done?
Hi All,
I'm just now trying jit.anim.drive - Very cool possibilities.
I didn't see an obvious way to have the object report when it is done with a "move"
I'd like to have the completion of a moveto animation trigger another event (send a bang or give me a msg i can "route" to throw a switch or whatever - lol).
Is there a way to do this?
Thanks!
Valentin
hi valentin. this is another feature that you'll have to wait for the next update.
there will be an attribute in jit.anim.drive called @evalreport, that will cause the object to output values between 0 and 1, indicating the current state of the moveto, rotateto, and scaleto animations.
Any chance of having @evalreport 1 reporting the status of "springto" in a near future?
springto doesn't have a determinable end, as it's a physical simulation rather than a simple interpolation between two points.
you can roll your own by testing the speed of the object against some threshold value, to trigger a notification.