Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script for darking windows

Birgit Broom
Registered User
Join date: 30 Jul 2004
Posts: 11
11-10-2004 09:17
Just finished building a nice house but would like to put a script in the windows to darken on a comand.. I'm still learning about how scripts. Thank you if you can help..
Birgit
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-10-2004 10:09
Hi Birgit,

Do you own the texture for the windows? If you do, there are a couple things you can do. You can change the tint of the texture to make it darker or possibly even have two textures, one light, and one darker, and then the script will change to whichever is appropriate.

If you have not already picked one up, send me a message later today and I will help you with the script.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Birgit Broom
Registered User
Join date: 30 Jul 2004
Posts: 11
Thank you Samhain
11-10-2004 18:14
Your suggestion helped. I have a script that would lighten the windows to alpha but since the windows were already glass so it was not working right. I put a dark texture on the out side of the windows that was non transluent ,so now the script turns it to alpha on command. Thank you for your sugestion, it works now:))
Birgit
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-10-2004 18:38
The most annoying thing about this is, if you want to sell something that changes the parameters like that, you have to make it "Modable".

I would like to come see it sometime. So if you happen to see me, shoot me an IM and offer a TP.

Glad I was able to help.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Trent Hedges
TrentCycle & GRAPHICA
Join date: 4 Sep 2003
Posts: 198
11-11-2004 12:12
From: Samhain Broom
The most annoying thing about this is, if you want to sell something that changes the parameters like that, you have to make it "Modable".

I would like to come see it sometime. So if you happen to see me, shoot me an IM and offer a TP.

Glad I was able to help.


you could have the changeable parameters in a notecard thats moddable - and have the script read them in - that way the script stays private

just 2 cents :)
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
11-12-2004 01:05
I think what he was referring to, is if he has a script that changes cretin parameters in an object. The script cannot change those parameters, unless the object is modify enabled.

Let say you have a plane. If it's mod-able, the script works.
BUt if you have a plane, and the object isn't mod-able. The script doesn't work.

So the developer is left with the choice of having a car with auto tinting windows, but it's easer for some one to clone. By simply coping the setting of each primitive into a new primitive. Or have a car that the windows do not tint, and it's harder for people to knock off copies of his car.
Trent Hedges
TrentCycle & GRAPHICA
Join date: 4 Sep 2003
Posts: 198
11-12-2004 04:52
From: Kurt Zidane
I think what he was referring to, is if he has a script that changes cretin parameters in an object. The script cannot change those parameters, unless the object is modify enabled.

Let say you have a plane. If it's mod-able, the script works.
BUt if you have a plane, and the object isn't mod-able. The script doesn't work.

So the developer is left with the choice of having a car with auto tinting windows, but it's easer for some one to clone. By simply coping the setting of each primitive into a new primitive. Or have a car that the windows do not tint, and it's harder for people to knock off copies of his car.


right you are - i missed that apparently! Ok - I am on board now :) So 2 textures is the way to go - one with an alpha, one with...LESS alpha hehe.

That way you can customize the texture a little too - add some glass effects etc.

(just trying to look intelligent now since i dropped the ball earlier )
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-12-2004 11:57
Ah, well, that would complicate matters for me. In the case of my clocks, they already have 12 textures, and they are set on white so that when it is night and the light comes on, it really shows nicely. I have a bunch of record discovery to do to make sure I catch all the customers that bought lamps and clocks... I would rather just make that one change and send the merchandise back.

But let me ask this... (I'm asking because I do not have anything to test this while I am not with my primary system).

IF you have a multi prim object that has to change the physical parameters (IE: Glass to Wood)... CAN that mod permission be placed a NON root prim where the script actually resides and then the ROOT be set such that the MOD does not have to be there?

At least the script does NOT have to have the Mod parameter set! =_)
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts