S: Getting info. of anim. seq.?

Blitz3D Forums/Blitz3D Beginners Area/S: Getting info. of anim. seq.?

Happy Sammy(Posted 2008) [#1]
Hi all,

Without given any info., is it possible to get sequence info. of an animated models?
(e.g. 0-40 is idle, 41-46 run, etc.)

Thanks in advance


Matty(Posted 2008) [#2]
You can get the length of the sequence using "animlength" but how is blitz supposed to know that a sequence is a run sequence or a jump sequence or any other sequence, it may not even be for a humanoid creature...


Happy Sammy(Posted 2008) [#3]
Thanks, Matty.

I tried
n = AnimLength(dragon) ;dragon.bb use dragon.md2
This return -1

n = AnimLength(player_model) ;castle.bb use mario.x
This return 20

Does this mean that AnimLength could not be used with md2?


Matty(Posted 2008) [#4]
I think there may be a similar command for MD2 models, have a look in the command reference.


GfK(Posted 2008) [#5]
What's with putting an "S" before every thread?


Happy Sammy(Posted 2008) [#6]
@Matty: "MD2AnimLength" should be used. :D

@Gfk: Just test "search" function. It turns out that "S:" and "OT" was ignored during searching
:D