How do i know how many frames animation has?

Discuss any general programming issues here
Post Reply
Bugala
Posts: 999
Joined: Sun Feb 14, 2010 7:11 pm

How do i know how many frames animation has?

Post 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.

User avatar
lazi
Posts: 595
Joined: Thu Feb 24, 2011 11:08 pm

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

Post by lazi »

You can get animation frames count as follows from version 4.5:

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

Bugala
Posts: 999
Joined: Sun Feb 14, 2010 7:11 pm

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

Post by Bugala »

Thanks.

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

Post Reply