detect an animation frame change

Technical questions, etc..
Post Reply
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

detect an animation frame change

Post by froo »

Hey folks. I think there is a way to do this but I have forgotten.
I want to detect when the timeline increments or decrements. This happens when we play the animation,
or when we scrub through it. We have the RsAnim.time() method(s) I believe, or something similar. I don't have tS
in front of me at the moment.

Basically, if the timeline has changed, and we are at a frame I am interested in, I want to perform an activity.

Any ideas?

Thanks!

Froo
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: detect an animation frame change

Post by clintonman »

I don't know, but I can imagine a round about way to do it.

Create a custom attribute
Animate it to change at the frame you want and feed it into a change detection node.
Clinton Reese

http://clintons3d.com
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: detect an animation frame change

Post by froo »

Thanks Clinton.
I'll try that.
Post Reply