Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Getting dances to play 1 after the other

Caedmon Cale
Registered User
Join date: 9 Sep 2007
Posts: 4
10-02-2007 06:33
Is there a way to build a macro that plays dances one right after the other without waiting say 10 seconds or 20 seconds?

The problem I am running into is that some animations are potentially either NOT activating (because the 1st dance is still playing) or leaving a large gap where the Avatar is just standing still waiting for the 2nd Dance Animation to be activated.

I know in Chims it plays once dance after another in order seemlessly.

Does HUDDLES offer a feature like that?
Midori Mikazuki
Registered User
Join date: 20 Sep 2006
Posts: 78
10-02-2007 06:43
Maybe someone smarter than I knows a way to do it, but as far as I know there's no way for LSL code to determine how long an animation sequence is. So I don't see how you could code something to automatically do it. You're pretty much stuck with figuring out how long the animation is yourself, and using a wait to time when to start the next animation. :(
Caedmon Cale
Registered User
Join date: 9 Sep 2007
Posts: 4
10-02-2007 08:12
Well, if you take a look at a chim from say Owenwhatever they are...

It will play through every animation in the chim one after the other. No timing required, it simply cycles through. So its possible, just wondering if HUDDLES has it
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
10-02-2007 08:48
From: Caedmon Cale
Well, if you take a look at a chim from say Owenwhatever they are...

It will play through every animation in the chim one after the other. No timing required, it simply cycles through. So its possible, just wondering if HUDDLES has it

I'm not sure if that is true about the Chimera. It's been a while since I used one, however, if you load a Chimera with large dances, go to crowded dance club and press play, you probably would get the same pauses in between dances the first time they played. If this is not the case I would love to see it for myself. Perhaps, they have figured out a trick to cover the problem.

The main problem you run into with any device that plays animations is that dances take time to download to the client. When you are standing still, waiting for an animation to play, the client is downloading the animation. This is similar to how when you load a webpage, large pictures take some time to load. The good news is that you only have to load an animation once per session. Once it has been downloaded, it should play instantly when you press the button or once Dance Mode comes to it again.

The second problem is that animations have different lengths and a script has no way to know how long a particular animation is. There is no function that returns it's length. However, the HUDDLES EZ Animator Deluxe does have a way around this. You can use notecards to specify the time for each animation like this:

dance1|25
dance2|9
dance3|13.5

I do this with my dance notecard. In Dance or Random mode, whenever it plays dance1, it plays it for 25 seconds and then goes on to the next one.

You might be able to do something clever with your notecard, some macro that would force download all the animations. I've never tried it myself. For instance if you tried:

dance1|0.5|dance2|0.5|dance3|0.5|dance4|0.5

And you played the macro once when you got to your club. It should try to play each animation for a half second and therefore download them all to the client. Then, you switch to your normal dance notecard after running that macro. Now the dances should play seemlessly when you click the button.
_____________________
imakehuddles.com/wordpress/