Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Retractable blanket?

Joseph Worthington
The Suntan Mega-Man
Join date: 29 Jul 2006
Posts: 563
11-02-2006 21:49
I've seen scripts on shower curtains that retract them, and then expand then when clicked. Would a similar script work on a homemade single prim blanket? Just looking for a way to to fold the blanket up when not in use, and then pull it back up when it's time for bed.
Aakanaar LaSalle
Registered User
Join date: 1 Sep 2006
Posts: 132
11-02-2006 22:46
I wouldn't see why not.

Just have it use llSetPrimitiveParams to change size, relative position, and if you have two different textures for flat vrs folded, change textures. Can even do all three in one llSetPrimitiveParams call.
Joseph Worthington
The Suntan Mega-Man
Join date: 29 Jul 2006
Posts: 563
11-03-2006 06:11
Excellent. And that you for the responce. If one end of my prim has a taper, do I need to include that into the script as well? Or will the prim itself remember those parameters?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
11-03-2006 07:54
My understanding is that the prim wont 'remember' anything of its original shape / form.
So you will neeed tro get the current values prior to setting g the new ones and store them for future use, or better still (?) use two states, folded and unfolded and set the required parameters when you enter the state.
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
11-03-2006 08:12
From: Joseph Worthington
I've seen scripts on shower curtains that retract them, and then expand then when clicked. Would a similar script work on a homemade single prim blanket? Just looking for a way to to fold the blanket up when not in use, and then pull it back up when it's time for bed.

You might want to check Maximum-Minimum store for example of bed which works like this... the trick is basically, the sheets prim shifts some 0.5 m towards the floor sinking into bed and effectively out of sight when not used, and then shifts back up into original place when it's needed. Very simple but effective.
Packard Sonic
Registered User
Join date: 2 Jun 2006
Posts: 9
Script avalible
01-04-2007 11:24
I have also seen the script for this around, and its supposed to be open source. Could some one please post this script?