Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script used for 1 pose wearable objects?

Harmony Levee
Registered User
Join date: 8 Dec 2008
Posts: 189
04-01-2009 06:34
I was wondering if anyone knew where I could get one or what its called.

It's the script used to animate you into whatever pose the worn object provides. Like holding a sign, fanning yourself with a fan etc etc...

thank you :)
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
04-01-2009 07:55
I use this, which also puts a permanent expression on the avatar's face. I cobbled it together myself but there might be a better way to achieve what you want. Best wait and see if anyone who actually knows what they're talking about has advice to offer.

CODE

default
{
attach(key avatar)
{
llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION);
}

run_time_permissions(integer value)
{
if (value & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("express_frown");
llSetTimerEvent(1);
}
}

timer()
{
llStopAnimation("express_frown"); // The full list of internal animations can be found at http://wiki.secondlife.com/wiki/Internal_Animations
llStartAnimation("express_frown");

llStartAnimation("Handle Hold"); // Put the exact name of the animation you are using in the object here.
}
}


Important: You really should have posted this in Scripting Tips. There is no guarantee that experienced scripters will see your request otherwise.
Amaranthim Talon
Voyager, Seeker, Curious
Join date: 14 Nov 2006
Posts: 12,032
04-01-2009 08:32
Ephraim- thanks- this was a question I was going to be having pretty soon myself- went and dumped it in something right away lest i forget-

ETA- is this similar in effect to anti pose and sit target? I mean in the sense you are animating the avatar by sitting on something- that was what i ws going to attempt t use once i was ready for it.. I do not know very much about scripting as u can no doubt tell from the question :)
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein




http://talonfaire.blogspot.com/

Visit Talon Faire Main:
http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store

XStreets: http://tinyurl.com/6r7ayn
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-01-2009 11:22
From: Amaranthim Talon
Ephraim- thanks- this was a question I was going to be having pretty soon myself- went and dumped it in something right away lest i forget-

ETA- is this similar in effect to anti pose and sit target? I mean in the sense you are animating the avatar by sitting on something- that was what i ws going to attempt t use once i was ready for it.. I do not know very much about scripting as u can no doubt tell from the question :)

it's similar in that it gets permissions and animates as some as it's on you, the main difference is the use of the attach event instead of the change event.

while scripting tips is great to SEARCH for ready made scripts, and for learning to script yourself, I do NOT suggest going there to ask for someone to make for you, or direct you to the seller of any script. please take those sorts of requests to the Products Wanted forum, especially if it's for something you wish to sell. asking to be directed to a known open source script is A-ok though.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Amaranthim Talon
Voyager, Seeker, Curious
Join date: 14 Nov 2006
Posts: 12,032
04-01-2009 11:37
From: Void Singer
it's similar in that it gets permissions and animates as some as it's on you, the main difference is the use of the attach event instead of the change event.

<snip>


Ah OK- so - then it would be this sort of script at play in the drink anims and eat anims we see :) Cool - I had not thought that one out. I hope to use it eventually for an oar :)
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein




http://talonfaire.blogspot.com/

Visit Talon Faire Main:
http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store

XStreets: http://tinyurl.com/6r7ayn
Ephraim Kappler
Reprobate
Join date: 9 Jul 2007
Posts: 1,946
04-01-2009 12:28
From: Void Singer
while scripting tips is great to SEARCH for ready made scripts, and for learning to script yourself, I do NOT suggest going there to ask for someone to make for you, or direct you to the seller of any script.

I think I had some advice on this in scripting tips, although it might have been when I used to carelessly post under whatever account I was running at the time, which is why I can't be sure. Generally I wouldn't use a script, let alone recommend it, unless someone like yourself has taken a look at it first. (You might have done in this very case.)

Note: A letter space occurs between the 'G' and the 'E' in the first 'PERMISSION_TRIGGER_ANIMATION' when it is posted. I have no idea what causes this but it should be deleted in order for the script to validate.
Amaranthim Talon
Voyager, Seeker, Curious
Join date: 14 Nov 2006
Posts: 12,032
04-01-2009 13:43
From: Ephraim Kappler
<snip>

Note: A letter space occurs between the 'G' and the 'E' in the first 'PERMISSION_TRIGGER_ANIMATION' when it is posted. I have no idea what causes this but it should be deleted in order for the script to validate.

Yup- meant to mention it- thanks again.
_____________________
"Yield to temptation. It may not pass your way again. "
Robert A. Heinlein




http://talonfaire.blogspot.com/

Visit Talon Faire Main:
http://slurl.com/secondlife/Misto%20Presto/216/21/155- Main Store

XStreets: http://tinyurl.com/6r7ayn