Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animation Misbehavior

3Ring Binder
always smile
Join date: 8 Mar 2007
Posts: 15,028
07-28-2007 06:49
HELP!

I put together an animation on an item, and no matter what I do, the thing doesn't behave properly.

I sit on it fine, and I see the animation working, but I have to edit the pose ball (turn it) so that the avatar is properly seated EVERY single time.

What script or button am I missing that locks it in place? Thanks!
_____________________
it was fun while it lasted.
http://2lf.informe.com/
Jessica Elytis
Goddess
Join date: 7 Oct 2005
Posts: 1,783
07-28-2007 08:11
Sounds like the AO script is setting your position on sit.

Open up the script and look for world co-ords. I'm no scriptor, so don't know the right terms, but you should find a place in the script that lists the x,y,z positions and x,y,z rotations.

A little playing around and you should be able to mod it to what you need.

~Jessy
_____________________
When your friend does somethign stupid:
From: Aldo Stern
Dude, you are a true and good friend, and I love you like the brother that my mom claims she never had, but you are in fact acting like a flaming douche on white toast with a side order of dickknob salsa..maybe you should reconsider this course of action and we go find something else to do.
Argent Asbrink
Registered User
Join date: 27 Jul 2007
Posts: 217
07-28-2007 08:22
From: 3Ring Binder
HELP!

I put together an animation on an item, and no matter what I do, the thing doesn't behave properly.

I sit on it fine, and I see the animation working, but I have to edit the pose ball (turn it) so that the avatar is properly seated EVERY single time.

What script or button am I missing that locks it in place? Thanks!


There are several explanations for this kind of problem, including the above-mentioned AO settings. Turn off your AO, then try sitting...if you sit properly, the problem is with the AO. If you still sit sideways, then the problem is inside the poseball script inside your item.
Open the poseball script, and adjust the co-ords inside to rotate the avatar until it's oriented properly.

As a side-note, I found a commercial product that's made the process a bit more streamlined and convenient for me when I'm building furniture or other "sittable" items. Do a search for the "Prim-Sitter" tool, it may save you the step of opening and modifying your scripts manually.
3Ring Binder
always smile
Join date: 8 Mar 2007
Posts: 15,028
07-28-2007 08:34
just to be clear, i dont have a sitting script inside the ball. just the animation and floating text script. maybe knowing that will help you help me better.

i'll check out that prim-sitter tool also.
_____________________
it was fun while it lasted.
http://2lf.informe.com/
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
07-28-2007 08:56
From: 3Ring Binder
i'll check out that prim-sitter tool also.
Oooo... there's a long thread and sample scripts in Scripting Tips at . Lex Neva did a bunch of good work on this (as always)... so if the prim-sitter tool happens to be Lex's, buy it :D otherwise, might check out that thread if you're up for cutting-and-pasting your own scripts.

[edit: forgot to mention: if there's no sit target set on the prim nor a script to use that animation, where you end up seated is fairly ill-defined... something like the above sit target-setting scripts will solve that problem, and invoke the animation.]
Mickey James
Registered User
Join date: 4 Nov 2006
Posts: 334
07-28-2007 10:07
From: 3Ring Binder
just to be clear, i dont have a sitting script inside the ball. just the animation and floating text script. maybe knowing that will help you help me better.


That is your problem, then. If there's no script, then it will automatically position the avatar as if it were any other prim, without regard to how the animation looks. You need a script that will define the sit position relative to the prim in such a way that the animation looks right.

There are scripting forums lower down under the 'content creation' section of this message board where you can get more technical help on how to do that.