Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

First Chair basics

Larry Klugman
Registered User
Join date: 10 Jun 2008
Posts: 7
07-03-2008 07:02
I have built my first chair and made the seat "sit-able." but when I have my avatar sit on it, he sits 90 degrees from the correct direction. Does this require a script to correct?

on another note, I using this chair replicated in a classroom and would like an animation that has student raise their hands when they have a question. I have seen this online but have not found where to get the animation.

Larry Klugman
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
07-03-2008 07:56
If the chair is unscripted, the avatar will sit facing whatever direction it came from immediately before sitting. In other words, if you were standing to the west of the chair, you'll sit facing west (usually).

If you use a sitTarget script, the avatar will sit in whatever position and rotation the script dictates. See http://wiki.secondlife.com/wiki/LlSitTarget for more information.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
07-03-2008 08:11
From: Chosen Few
If the chair is unscripted, the avatar will sit facing whatever direction it came from immediately before sitting. In other words, if you were standing to the west of the chair, you'll sit facing west (usually).

If you use a sitTarget script, the avatar will sit in whatever position and rotation the script dictates. See http://wiki.secondlife.com/wiki/LlSitTarget for more information.

*Blinks* Actually, as I recall, you face 180 degrees opposite to what you were facing, when you sit on an unscripted prim. So if you were facing west, and click on a prim to sit on it, you sit facing East.

Grab a free pose-ball script (see the scripting library forum) and either use that in the seat of the chair, or in a seperate pose ball. I use a seperate ball in all my chairs, so the sit position can easily be altered by the owner of the chair, to accommodate avatar size differences.

Not sure how best to script a choice of animations. Based on furniture I have bought from others, it would likely look for a touch event and use that to select a different pose than the default, or to toggle between "studying" and "ask question" poses.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Larry Klugman
Registered User
Join date: 10 Jun 2008
Posts: 7
Animation sources
07-03-2008 08:26
Thanks, that helps. In a brief look for chair animations, I did not find any accept those for sell and none that supported the hands up function I am after.
Larry
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
07-03-2008 08:35
From: Ceera Murakami

Grab a free pose-ball script (see the scripting library forum) and either use that in the seat of the chair, or in a seperate pose ball. I use a seperate ball in all my chairs, so the sit position can easily be altered by the owner of the chair, to accommodate avatar size differences.

Not sure how best to script a choice of animations. Based on furniture I have bought from others, it would likely look for a touch event and use that to select a different pose than the default, or to toggle between "studying" and "ask question" poses.


I agree, if you want the person to be able to adjust their sit position, you should put the animation and the sit script in a pose ball. However, in this case, your students don't need to adjust their position, so you can put the sit script inside the chair itself. Contacct me in-world if you need help getting it right.

As far as raising their hand, I also agree with Ceera and think you could go with a simple touch event in the script to swap back and forth between two animations -- one with hand down and one with it up. I would filter it so that only the person sitting in the chair can change the animation. (I am notorious about touching other people's stuff to make it do something. I could just see me raising and lowering the hand of the person in front of me in class.)

I have not seen those particular poses, but they would not be difficult to make.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
07-03-2008 10:43
From: Ceera Murakami
*Blinks* Actually, as I recall, you face 180 degrees opposite to what you were facing, when you sit on an unscripted prim. So if you were facing west, and click on a prim to sit on it, you sit facing East.

Yes, exactly. That's why I didn't say "facing west". I said "standing to the west of the chair", which would naturally mean you'd be facing east to look at it (usually). When you sit, you'd then be turned to face the direction you came from, meaning you're now facing west.

Sorry if I was at all unclear the first time through. :)
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Durga Dryke
Registered User
Join date: 7 May 2008
Posts: 8
07-03-2008 13:30
I have used and seen the /raisehand animation but it was as a gesture not a animation in the chair, sure it should be easy enough to put it as a animation in the chair, I'm just saying maybe the one you saw was the gesture?

Maybe that somehow helps you on your search.
Larry Klugman
Registered User
Join date: 10 Jun 2008
Posts: 7
ah, a gesture
07-03-2008 13:44
I am sure you are right, I am a 2 week newbie, so still learning the concepts, I'll start searching for gestures and raising hand. Hmm, that could get the wrong results ;-)
I found the example I like on ISTE Island and sent the creator and email. So maybe they will tell me where to find this useful educational gesture.
Larry
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
07-03-2008 15:13
From: Chosen Few
Yes, exactly. That's why I didn't say "facing west". I said "standing to the west of the chair", which would naturally mean you'd be facing east to look at it (usually). When you sit, you'd then be turned to face the direction you came from, meaning you're now facing west.

Sorry if I was at all unclear the first time through. :)

and that was suppose to clear that up, LOL :)
_____________________