Here's the code. It'll return the amount of frames of the
animation and set a variable if or if not the animation is cyclic.
#if ((final_frame-initial_frame)*clock_delta>=(final_clock-initial_clock))
#declare Total_Frames=1/clock_delta+1;
#declare Cyclic_Animation=off;
#else
#declare Total_Frames=1/clock_delta;
#declare Cyclic_Animation=on;
#end
Regards,
Tim
--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde
> :-) Okay okay. I'll post some code shortly.
>
> --
> Tim Nikias v2.0
> Homepage: http://www.digitaltwilight.de/no_lights
> Email: Tim### [at] gmxde
>
> > > two new constant
> > > float-identifiers should be introduced. To me they
> > > seem to be essential for creating animation-includes.
> >
> > Isn't that you who said "I'm the kind of guy who wants to script his
> > own stuff"? It can be made via script, and with this thread it is
already
> > documented for future references. Do not forget to post the code for
less
> > experienced users.
> >
> > ABX
>
>
Post a reply to this message
|