Notifications
Clear all

[Closed] Time Slider event?

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.

1 Reply

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”