Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Window Transparency Script

Dair Rocco
Registered User
Join date: 13 Dec 2004
Posts: 9
12-21-2004 17:01
I am pretty new to SL and have just finished building my first house and it has glass walls. I love the house but the problem is that I have been looking around for a switch or a script that I have seen in apt rentals that changes the transarency of the windows so that people can not see in. I have done searches in SL for shops with scripts and have looked for a couple days now with no luck which is why I am trying here now.

Is there anyone that can help me out with a script or has information on where to obtain a script i can put in a window or a switch I can put on a wall? Any help would greatly be appreciated. Thx - Dair Rocco
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
12-21-2004 17:05
amazingly I made this exact thing yesterday. Its easy to script. Contact me in game and Ill hook you up
Tya Fallingbridge
Proud Prim Whore
Join date: 28 Aug 2003
Posts: 790
12-21-2004 17:15
From: Dair Rocco
I am pretty new to SL and have just finished building my first house and it has glass walls. I love the house but the problem is that I have been looking around for a switch or a script that I have seen in apt rentals that changes the transarency of the windows so that people can not see in. I have done searches in SL for shops with scripts and have looked for a couple days now with no luck which is why I am trying here now.

Is there anyone that can help me out with a script or has information on where to obtain a script i can put in a window or a switch I can put on a wall? Any help would greatly be appreciated. Thx - Dair Rocco



You can find this script and the window dial/switch at any telehub. It comes with one of the free linden houses.
_____________________

Dair Rocco
Registered User
Join date: 13 Dec 2004
Posts: 9
12-22-2004 06:12
Thank you both for your help.
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-22-2004 06:19
touch(integer num) {
flip=1-flip;
if (flip)
llSetAlpha(0.20, 1);
else
llSetAlpha(1, 1);
}
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
12-22-2004 06:52
SNippets can be confusing to first time LSLers, so...
CODE
integer flip;

default
{
state_entry()
{
llSetAlpha(0.2, ALL_SIDES); // Makes windows semitrans on entry.
flip = FALSE;
}

touch(integer num)
{
if (flip)
{
llSetAlpha(0.2, ALL_SIDES);
flip = FALSE; // Yes, yes. More work. But a ton easier to read and understand for those learning.
}
else
{
llSetAlpha(1.0, ALL_SIDES);
flip = TRUE;
}
}
}
Hope this helps! :D
_____________________
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-22-2004 07:09
here noobs, come here noobs...
i got some candy for you...

CODE

integer flip;

default {
state_entry() {
llSetAlpha(0.2, 1);
}
touch(integer num) {
llSetAlpha((flip=!flip) * 0.8 + 0.2, 1);
}
}


*gets out mop to clean noob brain off floor*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
12-22-2004 07:13
From: Strife Onizuka
*gets out mop to clean noob brain off floor*

:p I knew there was a good reason I liked you. :D
_____________________
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
12-22-2004 08:10
I've seen some FREE Linden homes that have LOTS of glass in them. This one is a multi level, high prim count home that has sliding door scripts, and lanterns, and the scripts for changing the tint of the windows via a button. I'm sure you could hack away at that code and get something useful from it. I'll try to find it in my inventory and let you know what it's called so you can locate it more easily. If someone knows what I mean, and can post it sooner that would also be good.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts