Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multi-Animation Poseball-Script

Samira Vella
Registered User
Join date: 14 May 2007
Posts: 2
01-28-2008 04:58
Hi,

Sorry if this is already well known - but...
I looked at the multipose script and I do have some simple poseball script too, but still, I can't figure it out:

I have a group of single person animations I'd like to combine to a longer one inside the same poseball, and play them sequentially (randomly or ordered, it depends), without any menus involved. I guess I just have to read out the animations found in the poseball, get the permissions working, and chain them with llStartAnimation and llStopAnimation. Right? And what is the size/memory/time limit of such an animations chain?

Still, some animations may need to relatively change the position of the avatar for having a smoother transition effect. What should I do here? Store the optimal poseball position for each animation in a notecard and read and set it before playing them? Is there some code sniplet around for such a case...? (/me looks innocently to the sky :-)

At last... I'm just wondering if such a solution does exist for synchronyzed couple animations. Just as above, playing animations sequentially, without menus involved. I wouldn't mind to pay for it, if it's flexible enough to include my own anims.

Thx a lot for giving me some hint, even if this is a n00b question...
Samira
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-28-2008 22:56
You can't set animations up to play in sequence with simple LSL calls. If you start all the animations at once, they will play simultaneously (which will probably produce some odd results, depending on priority, which bodyparts they each animate, etc.).

The best you can do is carefully time the starting of an animation according to the length and starting time of the one before it. Keep in mind that this will not be perfect, and may even be wildly off depending on whether an animation is cached on someone's viewer and how long it takes to download if not. Same goes for position; if the ending position of one animation is not the same as the starting position, you're probably going to have to try some tricky llSetPrimitiveParams() hacks on the avatar to try to get the next animation starting off at that location.

I suspect both timing and positioning are going to make this an interesting experiment. I hope it works out well.