Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

help with multiple sit poses

BullGodd Ballinger
Registered User
Join date: 31 Aug 2007
Posts: 1
04-29-2008 08:02
how do I load multiple sit poses into 1 object. I.E like 3 diffrent sit postions into a sectional sofa?
Mortus Allen
Registered User
Join date: 28 Apr 2007
Posts: 528
04-29-2008 09:59
There are several ways of doing this really, there is a script on SLX that sells for 500 L$ that allow you to use multiple sit poses, and vary their position on the furniture, this works with only one AV per script and prim, and changes the pose by touch. The other is to put a separate pose in each prim, I recently bought a really nice set that has a different pose in each cushion and you can sit on the arms as well. The other way is to use poseballs and/or a system like MLP.
Madhu Maruti
aka Carter Denja
Join date: 6 Dec 2007
Posts: 749
04-29-2008 10:05
Is there no way to put multiple sit locations in a single prim, so that more than one avatar can sit (perhaps each with a unique pose) on the prim? I was looking for this recently but was unable to find the answer. I thought I had seen such a thing mentioned on the forums but I may have misunderstood, or misremembered.
_____________________

Visit Madhu's Cafe - relax with your friends in our lush gardens, dance with someone special, enjoy the sounds of classic Bollywood and Monday Night World Music parties - http://slurl.com/secondlife/Milyang/39/16/701/
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-29-2008 10:06
From: Madhu Maruti
Is there no way to put multiple sit poses in a single prim? I was looking for this recently but was unable to find the answer. I thought I had seen such a thing mentioned on the forums but I may have misunderstood, or misremembered.

mmm..I believe if you used the changed event and changed the sitpos every time someone sat down it may work. I'll have to test that though..and the animation would be the same for everyone unless I'm wrong on that bit
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Mortus Allen
Registered User
Join date: 28 Apr 2007
Posts: 528
04-29-2008 10:19
From: Keira Wells
mmm..I believe if you used the changed event and changed the sitpos every time someone sat down it may work. I'll have to test that though..and the animation would be the same for everyone unless I'm wrong on that bit


If such a thing were true that would be wonderful for me as I have a large boat build underway and have pretty much relegated myself to having to sit one AV per bench while in motion. :|
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-29-2008 10:20
From: Mortus Allen
If such a thing were true that would be wonderful for me as I have a large boat build underway and have pretty much relegated myself to having to sit one AV per bench while in motion. :|

I'm gonna be trying this later today, I recomend you do as well..maybe we can find a way ^_^
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
05-29-2008 04:01
I found this ages ago. It has worked well for me.
Then again I haven't tested it lately. :rolleyes:

From: someone
//Single prim multiple sit target script by cua Curie
//use as you like
//single prim multi sit target script
//this configuration is for prims that are longer than 2 meters on the y axis
//change offset variable to adjust spacing

vector size;//prim size
float offset=0.5;//spacing variable
float current;//tracks current target
default
{
state_entry()
{
//llSetScale(<.5,4,.5>;);//sets the prim size automaticly for this demo
size=llGetScale();//gets the prim size so we don't sit the person off the edge of the prim
llSitTarget(<0.5,(size.y /2) - (current + offset),0.25>,ZERO_ROTATION);//sets original sit target based on prim size and offset
}

changed(integer change)//and avatar sitting on a prim triggers CHANGED_LINK so we can use this to change the sit target
{
if(change==CHANGED_LINK)
{
llSitTarget(<0.5,(size.y /2) - (current + offset),0.25>,ZERO_ROTATION);//changes the postion
current+=offset;
if(current>size.y)//if the next target is off the edge of the prim reset the postion
{
current=0;
llSitTarget(<0.5,(size.y /2) - (current + offset),0.25>,ZERO_ROTATION);
}
}

}
}
_____________________
Madhu Maruti
aka Carter Denja
Join date: 6 Dec 2007
Posts: 749
05-29-2008 05:20
From: Sean Martin
I found this ages ago. It has worked well for me.
Then again I haven't tested it lately. :rolleyes:


Thanks for this, Sean - I will give it a try!
_____________________

Visit Madhu's Cafe - relax with your friends in our lush gardens, dance with someone special, enjoy the sounds of classic Bollywood and Monday Night World Music parties - http://slurl.com/secondlife/Milyang/39/16/701/
Ethan Habsburg
Shop Keeper
Join date: 2 Jan 2006
Posts: 98
06-04-2008 04:58
PERFECT Sitter by Piero Padar found on SLX allows you to place many sit animations in one prim. It works using menus
Dnali Anabuki
Still Crazy
Join date: 17 Oct 2006
Posts: 1,633
06-04-2008 07:02
A friend of mine gave me this. It seats multiple Avs on a prim but only one animation available unless the Av uses a sit in their AO. It seems very similar to the other posted script but might help some people.

I hope I have posted this script correctly..I'm not sure how to do it.

float seat;
float startseat;
integer startlinks;
integer links;
vector size;
float offset=0.75; //how far to space each seater

default{
state_entry(){
startlinks=llGetNumberOfPrims();
links=startlinks;
size=llGetScale();
seat=(size.y / 2) - 0.5;
startseat=seat;
llSitTarget(<0,size.y / 2,0.5>,ZERO_ROTATION);
}

changed(integer change){
if(change & CHANGED_LINK){
integer linksnow=llGetNumberOfPrims();
if(linksnow > links){
llSetLinkPrimitiveParams( llGetNumberOfPrims(), [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
links=linksnow;
}else{
links=linksnow;
seat=startseat;
integer seated=links - startlinks;
if(seated){
integer i=1;
do{
llSetLinkPrimitiveParams( startlinks + i, [ PRIM_POSITION, <0.5,seat,1> ]);
seat -= offset;
i++;
} while(i<=seated);
}
}
}
}
}