PDA

View Full Version : Force Update every frame?


MickyG
11-19-2009, 02:47 AM
Is there a way to run a script but then have it update every frame?

What I want to do is quite simple - just have a camera moving along a path with a path constraint controller, and then have a text object which has as it's .text property the current percentage of the camera along the path.

I have all this set up already, but it only updates the text object when I re-run the script. Any way to have it constantly update so for instance when I drag the timeline and the camera moves, the text changes along with it in realtime?

Thanks

bkravi
11-19-2009, 02:53 AM
you may use callbacks mechanism.

MickyG
11-19-2009, 04:56 AM
Thanks Ravindra, I guess it's about time I looked these bad boys up.

animation23
11-19-2009, 05:54 AM
The .text property of a text object can not be animated (directly). Basically you create a script controller on the kearning property (this can be animated) of the text object. The script controller will update the text property based on the animation of the kearning property. Check the maxscript tutorials. Look for animated text, or render animated text. It can be used to display frame numbers on a camera during a render, or during a preview. If you have Max 2010 the viewport text obscures the frame count.

I hope this helps,

-Alex

CGTalk Moderation
11-19-2009, 05:54 AM
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.