Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Full Bright or No Full Bright ...

Czari Zenovka
I've Had it With "PC"!
Join date: 3 May 2007
Posts: 3,688
11-12-2008 14:08
From: Jerboa Haystack
Sure, as soon as I get in world tonight, it's yours. :)


May I get in line for the toggle script as well, please? :)
_____________________
*Czari's Attic* ~ Relive the fun of exploring an attic for hidden treasures!

http://slurl.com/secondlife/Rakhiot/82/99/111

During times of universal deceit, telling the truth becomes a revolutionary act.- George Orwell
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-12-2008 14:16
From: Czari Zenovka
May I get in line for the toggle script as well, please? :)
Off the top of my head:
CODE

integer FACE=0; // change for your prim, ALL_SIDES for all sides.

default {
state_entry() { state off; }
}

state on {
state_entry() { llSetPrimitiveParams([PRIM_FULLBRIGHT, FACE, TRUE]); }
touch_start(integer n) { if (llDetectedKey(0) == llGetOwner()) state off; }
}

state off {
state_entry() { llSetPrimitiveParams([PRIM_FULLBRIGHT, FACE, FALSE]); }
touch_start(integer n) { if (llDetectedKey(0) == llGetOwner()) state on; }
}
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Czari Zenovka
I've Had it With "PC"!
Join date: 3 May 2007
Posts: 3,688
11-12-2008 14:31
Thanks Argent :)
_____________________
*Czari's Attic* ~ Relive the fun of exploring an attic for hidden treasures!

http://slurl.com/secondlife/Rakhiot/82/99/111

During times of universal deceit, telling the truth becomes a revolutionary act.- George Orwell
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-12-2008 14:35
YW

That's totally untested, I just typed it in and desk-checked it. If it makes your computer turn into a pumpkin or a Ferrari it's not my fault.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Czari Zenovka
I've Had it With "PC"!
Join date: 3 May 2007
Posts: 3,688
11-13-2008 07:21
From: Argent Stonecutter
That's totally untested, I just typed it in and desk-checked it. If it makes your computer turn into a pumpkin or a Ferrari it's not my fault.


Ferrari!!!! COOL!!!!!
_____________________
*Czari's Attic* ~ Relive the fun of exploring an attic for hidden treasures!

http://slurl.com/secondlife/Rakhiot/82/99/111

During times of universal deceit, telling the truth becomes a revolutionary act.- George Orwell
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
FullBright Flip Swtich Script
11-13-2008 08:37
This is my version of the script to do this:

CODE

default
{
touch_start(integer total_number)
{
if (llDetectedKey(0) == llGetOwner())
{
list listParams = llGetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES] );
llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, ((llList2Integer(listParams, 1) + 1) % 2)]);
}
}
}
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-13-2008 09:08
From: Cheree Bury
This is my version of the script to do this:
Takes an extra call per touch if you request the state insead of tracking it. Also, it would be slightly more efficient to use "!llList2Integer(listParams,1)" instead of adding one and taking the result modulo 2.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Maureen Boccaccio
TWJKFA
Join date: 28 Feb 2008
Posts: 14,484
11-13-2008 09:13
From: Jerboa Haystack
Sure, as soon as I get in world tonight, it's yours. :)


Worked like a charm! Thank you. :)
_____________________
Jerboa Haystack
TGTKFMA
Join date: 23 Sep 2008
Posts: 2,283
11-13-2008 09:28
From: Czari Zenovka
May I get in line for the toggle script as well, please? :)


Argent's is almost letter for letter what I have as well. :)

Guess I should have just posted it here. Ah well.
_____________________
From: Maureen Boccaccio
Well between your fingers and that magical device, you work wonders.


TOTD:
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." - Douglas Adams
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-13-2008 09:42
From: Jerboa Haystack
Argent's is almost letter for letter what I have as well. :)
There's only so many ways to do it. Apart from the copyright.

Have I mentioned the time we discovered that AT&T had copyrighted a zero-byte file?
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Jerboa Haystack
TGTKFMA
Join date: 23 Sep 2008
Posts: 2,283
11-13-2008 09:45
From: Argent Stonecutter

Have I mentioned the time we discovered that AT&T had copyrighted a zero-byte file?


Oh, I *so* want royalties for every time one of those get used! LOL
_____________________
From: Maureen Boccaccio
Well between your fingers and that magical device, you work wonders.


TOTD:
"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." - Douglas Adams
Czari Zenovka
I've Had it With "PC"!
Join date: 3 May 2007
Posts: 3,688
11-14-2008 06:27
/me copies this one down as well...thanks so much, Cheree :)

BTW, *finally* made a bit of time to go through various freebies/dollarbies/hunt prizes, etc. and came across your poses I had - LOVE them! Can't wait to have opportunity for another photo shoot!!

From: Cheree Bury
This is my version of the script to do this:

CODE

default
{
touch_start(integer total_number)
{
if (llDetectedKey(0) == llGetOwner())
{
list listParams = llGetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES] );
llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, ((llList2Integer(listParams, 1) + 1) % 2)]);
}
}
}
_____________________
*Czari's Attic* ~ Relive the fun of exploring an attic for hidden treasures!

http://slurl.com/secondlife/Rakhiot/82/99/111

During times of universal deceit, telling the truth becomes a revolutionary act.- George Orwell
Czari Zenovka
I've Had it With "PC"!
Join date: 3 May 2007
Posts: 3,688
11-14-2008 06:29
From: Jerboa Haystack
Argent's is almost letter for letter what I have as well. :)

Guess I should have just posted it here. Ah well.


Thanks, Jerboa :) I have Argent's and Cheree's tucked away.
_____________________
*Czari's Attic* ~ Relive the fun of exploring an attic for hidden treasures!

http://slurl.com/secondlife/Rakhiot/82/99/111

During times of universal deceit, telling the truth becomes a revolutionary act.- George Orwell
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
11-14-2008 06:42
From: Argent Stonecutter
Takes an extra call per touch if you request the state insead of tracking it. Also, it would be slightly more efficient to use "!llList2Integer(listParams,1)" instead of adding one and taking the result modulo 2.


Thanks, Argent, I still have lots of stuff to learn about LSL.

:-)
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
11-14-2008 06:43
From: Czari Zenovka
/me copies this one down as well...thanks so much, Cheree :)

BTW, *finally* made a bit of time to go through various freebies/dollarbies/hunt prizes, etc. and came across your poses I had - LOVE them! Can't wait to have opportunity for another photo shoot!!


/me's face lights up with a big smile
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
11-14-2008 07:43
From: Cheree Bury
Thanks, Argent, I still have lots of stuff to learn about LSL.
It's quite a nice little language, and the parser is very straightforward and clean. It's limited, of course, but it's got a pretty deep level of consistency.

I've been working in Visual Basic lately. I'd MUCH rather use LSL.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
1 2 3