llSetText
|
|
Alexander Bard
Old Noob
Join date: 8 Jun 2004
Posts: 37
|
02-19-2006 19:03
Hope this is okay to post here. Since my application of this is with llSetText, I suppose it is. I need the RGB values (<?,?,?>  for the color of our name tags. I know I could eyeball it in photoshop and copy the RGB's over there, but I want this to be perfect. I've seen several applications of this used around, and the color looks spot-on. Anyone know what it is - or an easy and accurate way to get it? Thank you. Oh. And I did try searching for this. But after 3 pages of unrelated drama, I still couldn't find the answer. But I did enjoy myself immensely throughout the search!EDIT TO ADD: I'm also trying to figure out how to get text to appear up a few carriage returns. I'm using \n\n\n\n\n, but it seems that without an actual character on each line, it doesn't register and it stays in the default height above the prim with the script in it. Any hack around this? I remember being able to use invisible characters from the character map for stuff like this, in other situations. But I can't remember how I used to do this. EDIT: Did it! Anyone else curious how to do this: llSetText("Your Text Here" + "\n " + "\n " + "\n " + "\n ", <1,1,1>, 1.0); And those are just run of the mill spaces after the \n, no special character.
_____________________
........
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
02-19-2006 19:31
just about every freely available script that does colors <-> name mataching does so with a table where the vectors are rounded off to even quaters (1/4). regular RGB -> SL you just devide by 255. Most default colors can be found in the color pallet of Mspaint (type that into a runbox or cmd line). You see, most of these colors are left over from a time before time, when computer screens only supported 16 colors.
Just google for common color names.
_____________________
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
|
|
Alexander Bard
Old Noob
Join date: 8 Jun 2004
Posts: 37
|
02-19-2006 19:45
Thanks Strife, that worked!
Didn't round off the calculations of RGB/255, but it worked just fine anyway:
<0.9803921,0.6823529,0.3647058> <--- For anyone else that wants it.
_____________________
........
|
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
02-19-2006 20:08
From: Alexander Bard I need the RGB values (<?,?,?>  for the color of our name tags. I know I could eyeball it in photoshop and copy the RGB's over there, but I want this to be perfect. No need to eyeball: take a screenshot, open it in photoshop, get the numbers, divide by 255.
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
02-20-2006 07:15
i'm really sorry, i totaly misread your request the first 10 times though. Open a run box from the start menu and paste (and remove the spaces in the name, the forums are evil) "%ProgramFiles%\Secondlife\app_settings\colors_base.ini" You will find the color on the eight line.
By default it is "251 175 93" or <0.98431372, 0.68627450, 0.36470588>
_____________________
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
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
02-20-2006 15:00
From: Alexander Bard llSetText("Your Text Here" + "\n " + "\n " + "\n " + "\n ", <1,1,1>, 1.0);
And those are just run of the mill spaces after the \n, no special character. You can also do "Your Text Here \n \n \n \n " which is hella easier to type.
|
|
Daisy Rimbaud
Registered User
Join date: 12 Oct 2006
Posts: 764
|
01-10-2007 05:38
That's very handy! I tried \n\n\n\n and found that didn't work, but I didn't think to add spaces. But what would be useful would be able to but in a vector offset to the floating text, but I can't see a way to do this.
|
|
Wood Golem
Registered User
Join date: 27 Jan 2006
Posts: 22
|
01-10-2007 22:35
er nevermind, i got my lines mixed up 
|
|
wholesale Bing
Registered User
Join date: 27 Jun 2007
Posts: 24
|
anyway to make floating text static
08-31-2007 11:16
anyway to make floating text fixed in one place ,i e , not turning when you move
many thanx
|