Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
LordHorusNL

Animation animPeriod?

Recommended Posts

Does anybody know if the "animPeriod" of an object can be changed by using a script?

I'd like to make the selection rotate at a normal speed and by using a script make it rotate faster/slower.

Thanks

Share this post


Link to post
Share on other sites

You can't vary the animPeriod, but you can vary how often the animation executes each phase.

AFAIK, in the config you would have to set the animations animPeriod to 0. Then in your script run something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_Phase=0

_PInc=0.01

#Loop

_Object Animate ["Anim",_Phase]

_Phase=_Phase+_PInc

~0.001

If (_Phase<1) Then {goto "Loop"}

To change the animation speed you would change the variable _PInc. Increase _PInc to increase the animations speed e.t.c The above is by no means complete, but there should be enough to get you started.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×