Aki Kojima
Junior Member
Join date: 17 Jan 2004
Posts: 2
|
01-27-2004 14:00
//Aki-Tools //"ColorVec on ColorChange" 01/27/2004 //This script is useful if you are trying to figure out a color vector. When you change the color of the object this script is on, the object will whisper the new color vector. init() { llSetColor(<1,1,1>, ALL_SIDES); } colorize() { integer s; vector color = llGetColor(1); llWhisper(0, "Current Color Vector: [ "+(string)color+" ]"  ; } default { state_entry() { init(); } on_rez(integer a) { init(); } touch_start(integer total_number) { colorize(); } changed(integer change) { if (change & CHANGED_COLOR) { colorize(); } } }
|
MadameThespian Underhill
"I'm Aaacting!"
Join date: 18 Dec 2002
Posts: 38
|
06-09-2004 20:54
Aki, I was intrigued by this script as I have a pair of glasses that can change the lenses to any color with a typed command. When I want those inbetween colors I'd love to be able to get the vector for it right away so your script was just what I was looking for. However, I can only get it to whisper a vector of all zeros no matter what color I change my cube to. What am I doing wrong? 
_____________________
Support the arts...go to the theatre!
|
Damien Rutherford
Registered User
Join date: 14 May 2004
Posts: 20
|
Answer to preceeding question
10-22-2004 15:17
From: someone However, I can only get it to whisper a vector of all zeros no matter what color I change my cube to. What am I doing wrong? I tried the code on a sphere and I only got zeroes as well. It turns out the face number has to change from 1 to 0, the line: From: someone vector color = llGetColor(1); has to become vector color = llGetColor(0);
|
MadameThespian Underhill
"I'm Aaacting!"
Join date: 18 Dec 2002
Posts: 38
|
10-23-2004 19:47
cool....thanks! 
_____________________
Support the arts...go to the theatre!
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
10-25-2004 11:05
I've got a script in my inventory called "Report Colors" that will report all the textures and colors on an object and then delete iteself. I just drag it onto the object and it spits out the info and removes itself from the object. Quite handy.
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
MadameThespian Underhill
"I'm Aaacting!"
Join date: 18 Dec 2002
Posts: 38
|
10-26-2004 14:23
so....uh...ya gonna post it? 
_____________________
Support the arts...go to the theatre!
|
FireDancer Steptoe
Registered User
Join date: 14 Dec 2004
Posts: 11
|
What a great script
05-03-2005 22:14
Thank you Aki for posting this..it has helped me sooooo much  FireDancer
|