Jaren Deckard
Registered User
Join date: 31 May 2005
Posts: 43
|
01-05-2006 14:23
Hi everyone  I'm using this code to set the ends of hair prims to completely invisible: default // the "birth" state  { state_entry() { llSetAlpha(0.0, 0); } } This works great UNLESS you wish to change the color after you've run this script. So for example say I'm going from a dark grey color to white in the color swatch selector screen... The first thing that happens is the entire prim turns 100% invisible, not too freaky, I know it's still there, I don't understand why it does it but... So I change the transparency value from under texture from 100 to 0 and the hair comes back with the new color, HOWEVER; the end of the prim is now 100% visible. So I have to run the script again which takes me back to the original color How??? HOW I SAY?!?! LOL, do I get the prim end to stay 100% invisible AND have the ability to change the prim to whatever color I want? TIA!
|
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
|
01-05-2006 14:52
Well, you could always write the desired color directly into the script, but scripting seems to me like overkill for this. It looks like all you want to do is turn side zero invisible, right?
How about just selecting that side and manually applying an alpha texture to it?
You can do this by turning on the "Select Texture" button in the editor window. Then just select the side you want to affect by clicking on it, and use the editor to apply an invisible texture. Alternatively, you can just drag the texture from inventory directly onto the side of the prim.
_____________________
.
Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
|
Jaren Deckard
Registered User
Join date: 31 May 2005
Posts: 43
|
01-05-2006 15:16
OMG! BRILLIANT!!! TY  That also solves my issue with my not being a scripter...
|