Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

No Pose Balls on Furniture

Kokaine Ingmann
Registered User
Join date: 16 Oct 2005
Posts: 8
02-28-2006 18:51
Is there a script I can purchase that would use no pose balls on furniture. For example I have seen furniture where the pose and script is in the content tab of the furniture. Am I am not erfering to hide and show poses or poses that only show when you click on teh furniture. Does anyone know what I am talking about?
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
03-01-2006 00:01
From: Kokaine Ingmann
Is there a script I can purchase that would use no pose balls on furniture. For example I have seen furniture where the pose and script is in the content tab of the furniture. Am I am not erfering to hide and show poses or poses that only show when you click on teh furniture. Does anyone know what I am talking about?


You can use a regular poseball script, just disable the transparency and floating text features.

You will need to set an offset (easy) and rotation (sometimes trivial, sometimes a nightmare) to go with the prim.

If you message me in-game I can send you the script I use and an example (a two-prim chair) but I don't have the time to support the script, and I certainly don't have the time to explain how to come up with the rotation numbers beyond the brief notes in the script.
Ketra Saarinen
Whitelock 'Yena-gal
Join date: 1 Feb 2006
Posts: 676
03-02-2006 13:56
I know nearly nothing about building in SL, so this could be WAY off base, but..

Do they have to be balls? I've noticed that the location of a pose ball and where the avatar 'sits' isn't always related. If they don't have to be spheres, couldn't you make the seating *cusion* the 'pose ball?'

say you had a couch, you could have each cusion be a seating spot.

Or

Each seating location could be a throw-pillow on the couch, allowing for couples seating.

Again, I'm not sure this is possible, but it does seem like it would be a solution for your problem.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
03-02-2006 14:17
I make one-prim kneeling cushions, scripted with a modified pose ball script and free pose inside them. Yes, you can do it.

Put the pose ball script inside the prim for the seat of the chair. You'll need to adjust it as the poster ahead of me specified, to remove the lines for showing and hiding the pose ball, and for displaying hover text. Adjusting the offset and rotation is a matter of trial and error, and will only fit a specific height avatar. This is why a lot of people prefer to use the pose ball, where you can move the ball to adjust the position, rather than adjusting strange numbers in script code.

If you put the pose script into a seat cushion, you get one seating position per prim that you do this with. So set up a couch that has three prims as the seat cushions, and each could have a single pose.

If you play with the offset, the pose doesn't have to be in the seat. You could, for example, put one pose in the right arm of a chair, for a female sit, and a different pose in the lfet arm, for a male sit. The problem there is people expect to click where they want to be seated, if they don't see a pose ball.

More advanced scripting can even bring up a menu, offering several choices for seating positions and 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.
Teddy Wishbringer
Snuggly Bear Cub
Join date: 28 Nov 2004
Posts: 208
03-02-2006 15:06
*waits patiently for the obligatory follow up post on how you should be using pose cubes, not pose balls.* :D

On a side note, it would be soooo much easier if posing was based on say hip location so avie size didn't drastically effect pose locations so brutally as they do now. It's a royal PIA buying a piece of furniture and either a) be locked into the designer's placement of poseballs or b) receving a piece of furniture and having to place and test each individual poseball yourself.. not very buyer friendly IMHO. It was only recently that I discovered you could still 'sit' on the poseball while it was sit in edit mode to reposition it with yourself on it instead of an alt or friend helping.
Ninja Kawabata
Registered User
Join date: 6 Nov 2005
Posts: 135
Pos Balls?
03-02-2006 15:22
I have seen a few items that have done away with pos balls and they use a script, when you click on the couch or bed ( these are where I have seen them used) you get a menu on what pose you want and then it does it after you select it. There is a store in the amsterdam sim that sells them for the bed so I know they are out there.
Luth Brodie
Registered User
Join date: 31 May 2004
Posts: 530
03-02-2006 15:36
Generally what I like to do is make the pose balls transparent. You can put them into the cushions but you would not be able to adjust the placement to fit the avatar without editing the script. Hitting alt while in edit mode will show the transparent pose ball which is far easier to edit then the sit position in the script.

As for the pose cube question, many of us don't use them because of a lack of liscense for resale. At least that's how it was the last time I checked. Not to mention I have different sorts of poseball scripts that allow me to do different things.
_____________________
"'Aarrr,' roared the Pirate Captain, because it seemed a good way to end the conversation."
The Pirates! In An Adventure With Scientists.

Reel Expression Poses and Animations:
reelgeek.co.uk/blog
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-02-2006 15:55
From: Luth Brodie
As for the pose cube question, many of us don't use them because of a lack of liscense for resale. At least that's how it was the last time I checked. Not to mention I have different sorts of poseball scripts that allow me to do different things.
OMG, you mean putting the script in a different shaped prim stops you from selling it?
Luth Brodie
Registered User
Join date: 31 May 2004
Posts: 530
03-02-2006 19:00
From: Argent Stonecutter
OMG, you mean putting the script in a different shaped prim stops you from selling it?


Obviously not. See the word license.

Pose cube as in the PosAbility PoseCube that was developed by Hiro Pendragon, I dunno maybe a year ago, that was to revolutionize furniture posing. Which while far more user friendly, cuts down lag and prims instead its limiting due to the one time use of the things and small about of licenses available.
_____________________
"'Aarrr,' roared the Pirate Captain, because it seemed a good way to end the conversation."
The Pirates! In An Adventure With Scientists.

Reel Expression Poses and Animations:
reelgeek.co.uk/blog
Miriel Enfield
Prim Junkie
Join date: 12 Dec 2005
Posts: 389
03-02-2006 22:36
From: Nepenthes Ixchel
You will need to set an offset (easy) and rotation (sometimes trivial, sometimes a nightmare) to go with the prim.

I really hate to ask this, but... could someone explain how to set the rotation? All the pose script examples I have are set ZERO_ROTATION, and I'm winding up sideways whenever I sit. I checked the scripting wiki for the function that sets the offset and rotation, and for the rotation entry, but I got lost.
_____________________
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-03-2006 06:48
From: Luth Brodie
Pose cube as in the PosAbility PoseCube that was developed by Hiro Pendragon, I dunno maybe a year ago, that was to revolutionize furniture posing. Which while far more user friendly, cuts down lag and prims instead its limiting due to the one time use of the things and small about of licenses available.
Hmmm. I've played around with pose balls that let you adjust the position and offset with your control keys, maybe I should polish them up and sell them.
Teddy Wishbringer
Snuggly Bear Cub
Join date: 28 Nov 2004
Posts: 208
03-03-2006 08:56
Yeah! A short tutorial is really needed on this. I spent about 2 hours last night trying to use heavily modified version (by me) of CrystalShard's pose script and a sleeping pose in a single size (one prim) mattress. But the rotational value is always screwed up. As Miriel mentions, the key is ZERO_ROTATION and being able to figure out what values are necessary to say -90 degrees on the Z axis and +90 on the Y, etc. This PIE_BY_2 or whatever it's called is confuzzling for this poor cub. :o

From: Miriel Enfield
I really hate to ask this, but... could someone explain how to set the rotation? All the pose script examples I have are set ZERO_ROTATION, and I'm winding up sideways whenever I sit. I checked the scripting wiki for the function that sets the offset and rotation, and for the rotation entry, but I got lost.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
03-03-2006 08:58
From: Ninja Kawabata
I have seen a few items that have done away with pos balls and they use a script, when you click on the couch or bed ( these are where I have seen them used) you get a menu on what pose you want and then it does it after you select it. There is a store in the amsterdam sim that sells them for the bed so I know they are out there.


You refer to the SexGen beds that Stroker Serpentine sells in Amsterdam? Great product! But they still use pose balls. However, they generate the pose balls on command, and can store individual user prefs for positioning them. Really slick programming there. You can even move smoothly from one pose set to another without hopping from oen pose ball set to another. O^O Great work, Stroker!

As for rotation settings, it's either in radians or some euler rotation notation. I can't recall, but the info is there in the scripting wikki, if you read the associated links. Still, I had to use a lot of trial and error to keep from winding up sideways myself. :)

I'll check my cushion script when I get in-world, and will post that values that worked for my cushion, while using a 'Jap Sit' pose. That will at least give people a starting point.
_____________________
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.
Miriel Enfield
Prim Junkie
Join date: 12 Dec 2005
Posts: 389
03-03-2006 09:39
From: Teddy Wishbringer
Yeah! A short tutorial is really needed on this. I spent about 2 hours last night trying to use heavily modified version (by me) of CrystalShard's pose script and a sleeping pose in a single size (one prim) mattress. But the rotational value is always screwed up. As Miriel mentions, the key is ZERO_ROTATION and being able to figure out what values are necessary to say -90 degrees on the Z axis and +90 on the Y, etc. This PIE_BY_2 or whatever it's called is confuzzling for this poor cub. :o

If you're actually able to change the rotation at all, you're ahead of me! I literally can't figure out what I need to replace ZERO_ROTATION with. Everything I've tried has rendered the code uncompilable.
_____________________
Teddy Wishbringer
Snuggly Bear Cub
Join date: 28 Nov 2004
Posts: 208
03-03-2006 09:58
[left]There's some talk on the wiki, lemmi see if I can dig up the url..

Here it is..

It's still not all too clear though.. but it's the starting point I used.
[/left]
fr0zen Squeegee
Registered User
Join date: 3 Feb 2006
Posts: 23
03-03-2006 09:59
This is an embedded pose script that I've been playing with...I use it in a cushion I made with the meditation animation (just stick it in the contents). The rotations are weird and I played a long time to get myself to sit on the cushion rather than off to the side or underneath it upside down and sideways :) I'm no scripting expert and this one is super simple and prolly only works for my av hehe.


string anim;
integer sitting;

default
{
state_entry()
{
anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
sitting = 0;
llSitTarget(<1.2,0,-.45>, <0, 1, 0, 1>;);
}

changed(integer change)
{
if(change & CHANGED_LINK)
{
key av = llAvatarOnSitTarget();

if(av != NULL_KEY)
{
llRequestPermissions(av, PERMISSION_TRIGGER_ANIMATION);
}
else
{
if((llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) && sitting)
{
sitting = 0;
llStopAnimation(anim);
}
}
}
anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
}

run_time_permissions(integer perm)
{
if(perm & PERMISSION_TRIGGER_ANIMATION)
{
sitting = 1;
llStopAnimation("sit_generic";);
llStopAnimation("sit";);
llStartAnimation(anim);
}
}

on_rez(integer start_param)
{
llResetScript();
}
}
Teddy Wishbringer
Snuggly Bear Cub
Join date: 28 Nov 2004
Posts: 208
03-03-2006 10:41
Thank you so very much for posting the script. I'll give it a try when I get home.

I've been playing with some of the example code in the wiki, and it keeps telling me it has syntax errors. Grrr! *sighs*

While I'm glad CrystalShard posted the poseball script, it has alot of extra fluff that I don't need for this project (like touch hides, listens, notecard support, etc.). Your code appears to do exactly what I need it to do without all the extra stuff.
Miriel Enfield
Prim Junkie
Join date: 12 Dec 2005
Posts: 389
03-03-2006 10:58
Thanks for the link, Teddy, though I already read that page and it didn't really help. Seeing fr0zen's example code was a big help, though. I actually got my avatar to sit properly on a couch after some trial and error.
_____________________
Brookston Holiday
Registered User
Join date: 29 May 2005
Posts: 58
03-03-2006 12:24
I hope this helps you guys.... THis is how i've found to simplify rotations in poseballs, chairs, whatever....



CODE


default
{
state_entry()
{

vector pos = <0,.1,0>; //enter the position offset here.

vector rot = <0,0,0>; //enter the rotation you want in DEGREES

rot *= DEG_TO_RAD; ///convert our degrees to radians

rotation rotFinal = llEuler2Rot(rot); //converts to a quaternion which is what LSL
//uses for most functions, but is impossible
//for most people to visualize

llSitTarget(pos, rotFinal);
}
}

Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
03-03-2006 16:47
The reason they're balls and seperate is because its easier to 'turn' a ball - and adjust a seperate prim than to do what I do 90% of the time and use the sittarget and build it into the furniture itself.

basically its eaiser for folks to sling an anim and script into a prim and sell it and say 'adjust it yourself'

For an example of what can be done without them at all - go see my smooth anim beachtowels.. I do away with the 'poseball' and still have mulitple anims (in a way that noone else has done either I might add).
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals.

From: Jesse Linden
I, for one, am highly un-helped by this thread
Brookston Holiday
Registered User
Join date: 29 May 2005
Posts: 58
03-03-2006 22:42
I've seen those towels, they kick ass... so is the swim hud thing (not sure if that's yours but was in the same section of the store)
Jonathan Morris
Registered User
Join date: 5 Jan 2006
Posts: 66
rotation queary
03-04-2006 10:03
From: Miriel Enfield
... could someone explain how to set the rotation? All the pose script examples I have are set ZERO_ROTATION, and I'm winding up sideways whenever I sit .


Replace ZERO_ROTATION with llEuler2Rot (SIT_ROT )

at the top of the script have " vector SIT_ROT =< 0, 0, 0 >; "

adjust SIT_ROT values to get your position
( rotation value is in radians, 90 degrees = 1.57 radians )
Brookston Holiday
Registered User
Join date: 29 May 2005
Posts: 58
03-04-2006 13:58
My way is way easier cuz you can just use degrees... but hey whatever.
Miriel Enfield
Prim Junkie
Join date: 12 Dec 2005
Posts: 389
03-04-2006 15:42
Thanks to both of you, though I got it using fr0zen's code. :)

From: Brookston Holiday
My way is way easier cuz you can just use degrees... but hey whatever.

I'm a math person IRL. I prefer radians. ;)
_____________________