|
Vesta Martynov
Registered User
Join date: 6 Mar 2007
Posts: 6
|
01-10-2008 05:01
Does anyone have a simple script to sync poseballs? I have two animations I need to have start at the same time.
I'm also looking for a script so that I can offer the animation to the other person (like the animations that offer hugs I see for free all over SL). It seems that this would solve my sync issue and might be more convenient all around.
I've looked around for tips on how to make these, but I'm overwhelmed and have found nothing that I can understand...Can anyone help me?
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
01-10-2008 05:51
I made a dance Hud that syncs animations. If you have some scripting skills you could do it by yourself.
Basically you have three scripts:
Two "slaves" (one for each pose ball) that listen for a "master" script, the "master" script will count how many people are sitted in the poseballs.
In this case when the counter gets to 2 it will say to the "slave" scripts "go!" and they will play animation.
--------
Maybe there are other ways to do it, I don't know how the default works, but that's the solution I have in mind.
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-10-2008 06:06
technically doable in a single script.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-10-2008 08:58
Possibly doable in a single script, but only if you want permissions dialogs to pop up every time you want to start or stop an animation. A single script can only have permissions granted for one avatar at a time.
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
01-10-2008 09:44
This script shows how to make two or more objects perform actions at very close to the same time, *without* using any messages back and froth between the objects. It would even work across sims. /15/4c/180313/1.html
_____________________
So many monkeys, so little Shakespeare.
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
01-10-2008 14:04
From: Squirrel Wood technically doable in a single script. How?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-10-2008 15:34
I'm with Kahiro on this one... I could see it in 2 scripts (one for each set of permissions), and abusing the fact that scripts hear their own link messages...
but I'd assume, in a single script, after triggering the first animation, for av 1, you'd have to request permissions for av 2 before triggering them, which would induce some lag time... which may or may not be an acceptable amount, but as delicate as matching anims are, I'd assume the worst in all but the most ideal conditions
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-11-2008 00:18
for just two avatars it takes almost no time to request permissions and start the animations. They would be mayhaps 0.1 seconds "apart" if that much at all.
Permissions are granted automatically when both sit on the object.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
01-11-2008 05:28
From: Squirrel Wood Permissions are granted automatically when both sit on the object. Aha! It's by *object*, not just by prim! I almost got around to testing this yesterday.  This is kinda important for how those anims get stopped once the avatars stand, too. Coolness.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-11-2008 19:48
my understanding was that you still had to make the request? granted it can be done fast, but matching anims can be touchy... has it been tried/done and still reliable w/o lag effects?
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|