Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Click to change sit poses

Ethan Habsburg
Shop Keeper
Join date: 2 Jan 2006
Posts: 98
03-22-2008 10:23
What kind of script is used in those chairs that have multiple poses. You sit then you click on the chair and your pose changes.
I have lots of sit animations and I place them in my seat cushion using "Prim Sit" (I think that's the name of the program I use).
Thanks for any help.
Ethan
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
Worth?
03-22-2008 12:51
I just completed the 'SD Pose and Animation Browser' which does just that, not by clicking but by a dialog.
You will find it at http://slurl.com/secondlife/Scamp/74/176/71
_____________________
From Studio Dora
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
03-22-2008 22:56
Do you just want to see the animation/pose or do you want the avatar to be properly positioned and rotated so that they look like they are sitting in the chair? If you just want to see the animation then it is just a matter of using llDialog to pick the animation and llStartAnimation/llStopAnimation to see it. If you want to be properly sitting in a chair then you will need to store the sit target/rotation for each animation and use llSetLinkPrimitiveParams to change the avatar's sitting position and rotation.
Ethan Habsburg
Shop Keeper
Join date: 2 Jan 2006
Posts: 98
03-23-2008 05:21
Thank you Dora. I had wanted to click on the chair and not use dialog, but I will drop by and check out your product.
Thank you BamBam. Since I already use the Prim Sitter program to position my sit animation in the cushion (the program generates the position numbers and I paste them into a sit script included with the program), I had hoped I might be able to just add a script to the mix to do the click change. I know next to nothing about scripting and really don't know what you were writing about. I can sometimes edit an already existing script but I have never tried to write one from scratch.
Thanks