Page 1 of 1

How do i know how many frames animation has?

Posted: Wed Aug 03, 2011 1:18 am
by Bugala
As title says, after loading the animation, i need to somehow know how many frames that animation has.

Is there some command that i can use to find out all that info, or is there maybe some other trick like displaying frame at a time and finding out if end have been reached or not.


For this must be possible some way, otherwise Holywood itself wouldnt know when to stop playing animation that is supposed to be played only once.

Re: How do i know how many frames animation has?

Posted: Wed Aug 03, 2011 7:37 pm
by lazi
You can get animation frames count as follows from version 4.5:

n = GetAttribute ( #ANIM, id, #ATTRNUMFRAMES)

Re: How do i know how many frames animation has?

Posted: Wed Aug 03, 2011 10:29 pm
by Bugala
Thanks.

I actually found that answer only moment ago before looking here while trying to find solution to another problem.