PDA

View Full Version : Time Slider event?


Celarien
11-29-2010, 05:39 PM
Hi...

I'm working on a script which updates certain object's pivots, repositions and rotates them according to values in parameters. I currently have a problem, though, that when I animate the parameter(s), I do not know of any way to update the intermediate keyframes. While Max interpolates the objects size, it doesn't interpolate (nor should it) the objects pivots, thus making my setup incorrect.

Is there any event that I can use to recalculate this whenever the time slider changes? According to documentation there is "on <rollout> setTime <val> do ...", but it doesn't seem to trigger, perhaps because it only works for scripted materials and texturemaps (according to documentation)?

Thanks,
Pete.

Celarien
11-29-2010, 06:08 PM
Nevermind, I figured out how to do it...

If anyone else has the same doubt, I used registerTimeCallback, which calls the registered function whenever the time slider is changed, even if you press "play" :)

CGTalk Moderation
11-29-2010, 06:08 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.