animations in a chair
|
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
|
03-08-2007 09:12
Hello people,
I hope someone can help me with the following. Is there any way to put a sit animation into a chair without adding a pose ball, i.e. a further prim, to that chair? Can it be done, for instance, by putting an animation into the chair and adding a script? I dislike pose balls, and I don't want to add prims to furniture, as I make efforts to keep them as low-prim as possible.
Thanks, Xylo
|
Dellybean North
Registered User
Join date: 8 May 2006
Posts: 321
|
03-08-2007 09:26
Hi Xylo, Well, yes there is. As I stated (I thought clearly, guess not) in the notecard I sent you, you can put the animation and poseball script directly into one of the prims that comprise the piece of furniture.
|
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
|
03-08-2007 09:44
Well, Delly....Maybe I was being very unbright by not understanding that, but I did send you a question about it, which you never answered.
|
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
|
03-08-2007 09:49
look in Scirpting tips for Sit Target Helper and Sit Target Setter Scripts. Used in conjunction with the Generic Sit Target Script, you should have all you need.
|
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
|
03-08-2007 09:59
Thanks, Renee, I've been looking into that extensively, yesterday and today, luckily with the help of a kind resident. However, a few problems still remain (weird rotations of sitting position sometimes occur, though this may be caused by slanted angles of my seats), and also, I would like to use something other than the default sit pose. So I've been trying to put sit animations into my chairs, but somehow, that doesn't seem to be enough. When I sit, I still get the default sit pose.
|
Dellybean North
Registered User
Join date: 8 May 2006
Posts: 321
|
03-08-2007 10:45
From: Xylo Quisling Well, Delly....Maybe I was being very unbright by not understanding that, but I did send you a question about it, which you never answered. Yes sorry about that.. the IM got capped and I didn't get the whole message.
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
03-08-2007 10:57
summary
To get a custom sit, there has to be a script in an object. The script specifies the position and rotation of the pose, relative to the object, and also uses the name or key of the sit animation to retrieve it and use it instead of the default.
One approach is to use a separate object, such as a pose ball. It might be a pillow or a doily or a Chihuahua or any other thing one might sit on.
The advantage is that one can move this object around until you are sitting the way you want.
Note that you can also make that object invisible, or almost invisible, or only invisible when you sit on it.
The other approach is to put the script into some object taht already exists, such as the seat of the chair. In this case, you can't move it around without making the chair look strange. Therefore, you have to use the script to get the right rotation and position. This is very easy *once you know how to do it* and can be very confusing for beginners who don't understand radians and the diff between Euler rotations, and quaternions.
hence, professional scripters...
|
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
|
03-08-2007 22:12
I see, Lee. So you would advise buying those custom animations? I have to say, whenever it is said that something, for instance involving scripting (but it may also involve cooking a basic recipe, following a route on the map, learning Finnish grammar), is 'easy', and any child can do it, I find myself almost entirely unable to understand even the basics. So when, in the case of scripting, quaternions are presented as difficult, I know that alarm is in order. On the other hand, I do have a live-in mathematician who is shrugging a tad contemptuously and says quaternions are simple, so I might be able to enlist his help.
|