These forums are CLOSED. Please visit the new forums HERE
Is there a way to set Glow... |
|
|
GRubinJr Mighty
Registered User
Join date: 11 Mar 2008
Posts: 5
|
08-15-2008 18:55
...in order to toggle it on and off, preventing the glow afterimage from existing when an object is toggled to be invisible (such as in an "off" state for a neon sign)?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-15-2008 21:16
CODE
If you get an error about PRIM_GLOW not being defined, you are using a viewer in which it hasn't been defined yet. Put the following line at the top of your script, and be ready to comment it out again if you ever compile it and get an error because it has become a built-in constant: CODE
You may need to change ALL_SIDES to the number of a particular side if it's not for the whole prim. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams |
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
08-16-2008 01:01
CODE llSetPrimitiveParams([ 25, ALL_SIDES, 0.0 ]); // 25 = PRIM_GLOW This will compile in ANY SL client. _____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
GRubinJr Mighty
Registered User
Join date: 11 Mar 2008
Posts: 5
|
08-16-2008 03:28
Thank you for your assistance.
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
08-19-2008 00:00
Edit: Okay, you can disregard this. Silly me just forgot to set the alpha argument for the color so my script got muddled up parsing the list. :-/
Hmmm I've been trying both llSetPrimitiveParams([ PRIM_GLOW, ALL_SIDES, 0.0 ]); and llSetPrimitiveParams([ 25, ALL_SIDES, 0.0 ]); and I keep getting a script error: Hanging Lamp: llSetPrimitiveParams error running rule #2: unknown rule. (it's rule #2 because in my script the color is being set before the glow.) Client version is 1.20.15 (92456). Any ideas? |
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
08-19-2008 01:28
Do you have the right number of parameters for the color part before that? I've had that before when forgetting to plug in an alpha value.
_____________________
|
|
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
|
08-23-2008 14:44
Was having the same problem and wasn't the viewer version.
Glow worked if in a separate llSetPrimitiveParams call. By making 2 calls it all worked |