constant
ConstantSet with Get with
integer PRIM_GLOW = 25;llSetLinkPrimitiveParamsFastPRIM_GLOW, integer face, float intensityllGetLinkPrimitiveParams, llGetPrimitiveParamsPRIM_GLOW, integer face → float intensityinteger face// Values: Facesfloat intensity// Range 0–1
Prim parameter [PRIM_GLOW, integer face, float intensity] to get or set the glow intensity on a face (the compiler integer value is 25 if the named constant is rejected).
Other PrimParam values (42)
PRIM_ALLOW_UNSIT39PRIM_ALPHA_MODE38PRIM_BUMP_SHINY19PRIM_CLICK_ACTION43PRIM_COLLISION_SOUND53PRIM_COLOR18PRIM_DAMAGE51PRIM_DESC28PRIM_FLEXIBLE21PRIM_FULLBRIGHT20PRIM_GLTF_BASE_COLOR48PRIM_GLTF_EMISSIVE46PRIM_GLTF_METALLIC_ROUGHNESS47PRIM_GLTF_NORMAL45PRIM_HEALTH52PRIM_LINK_TARGET34PRIM_MATERIAL2PRIM_NAME27PRIM_NORMAL37PRIM_OMEGA32PRIM_PHANTOM5PRIM_PHYSICS3PRIM_PHYSICS_SHAPE_TYPE30PRIM_POINT_LIGHT23PRIM_POS_LOCAL33PRIM_POSITION6PRIM_PROJECTOR42PRIM_REFLECTION_PROBE44PRIM_RENDER_MATERIAL49PRIM_ROT_LOCAL29PRIM_ROTATION8PRIM_SCRIPTED_SIT_ONLY40PRIM_SIT_FLAGS50PRIM_SIT_TARGET41PRIM_SIZE7PRIM_SLICE35PRIM_SPECULAR36PRIM_TEMP_ON_REZ4PRIM_TEXGEN22PRIM_TEXT26PRIM_TEXTURE17PRIM_TYPE9
Other PrimParamGet values (40)
PRIM_ALLOW_UNSIT39PRIM_ALPHA_MODE38PRIM_BUMP_SHINY19PRIM_CLICK_ACTION43PRIM_COLLISION_SOUND53PRIM_COLOR18PRIM_DAMAGE51PRIM_DESC28PRIM_FLEXIBLE21PRIM_FULLBRIGHT20PRIM_GLTF_BASE_COLOR48PRIM_GLTF_EMISSIVE46PRIM_GLTF_METALLIC_ROUGHNESS47PRIM_GLTF_NORMAL45PRIM_HEALTH52PRIM_MATERIAL2PRIM_NAME27PRIM_NORMAL37PRIM_OMEGA32PRIM_PHANTOM5PRIM_PHYSICS3PRIM_PHYSICS_SHAPE_TYPE30PRIM_POINT_LIGHT23PRIM_POS_LOCAL33PRIM_POSITION6PRIM_REFLECTION_PROBE44PRIM_RENDER_MATERIAL49PRIM_ROT_LOCAL29PRIM_ROTATION8PRIM_SCRIPTED_SIT_ONLY40PRIM_SIT_FLAGS50PRIM_SIT_TARGET41PRIM_SIZE7PRIM_SLICE35PRIM_SPECULAR36PRIM_TEMP_ON_REZ4PRIM_TEXGEN22PRIM_TEXT26PRIM_TEXTURE17PRIM_TYPE9
PRIM_GLOW is used to get or set the glow status of the face. Use the integer number 25 if the compiler rejects the named constant.
PRIM_GLOW, integer face, float intensityWhen used with llSetLinkPrimitiveParamsFast
llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_GLOW, integer face ]);Returns the same values, in the same order.
Caveats
Section titled “Caveats”Examples
Section titled “Examples”basic syntax to set glow
// adjust as desired .3 to a float number from 0 to 1.0 inclusive// adjust as desired ALL_SIDES to specific prim faces if desired
llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_GLOW, ALL_SIDES, .3 ] ) ;basic syntax to get glow status
list mylist = llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_GLOW,ALL_SIDES] );llSay(0, llList2CSV(mylist));
//Assuming for this example that all sides are set to the same float of .3//In a box, which has 6 sides, the above example returns 0.300000, 0.300000, 0.300000, 0.300000, 0.300000, 0.300000//In a prism, which has 5 sides, returns 0.300000, 0.300000, 0.300000, 0.300000, 0.300000//In a sphere, which has only 1 side (as it were), returns 0.300000//change ALL_SIDES to a specific prim face if desired.//Each time the prim is touched, the intensity of the glow is increased (until it maxes out and cycles back to zero).integer steps = 10;integer counter = 0;
default{ touch_start(integer total_number) { llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_GLOW, ALL_SIDES, counter / (steps - 1.0) ]); counter = (counter + 1) % steps; }}//Each time the prim is touched, the intensity of the glow is decreased (until it hits zero and cycles back to one).integer steps = 10;integer counter = 0;
default{ touch_start(integer total_number) { llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_GLOW, ALL_SIDES, counter / (steps - 1.0) ]); counter = (counter + steps - 1) % steps; }}History
Section titled “History”Added in SVN:337 r81900 Branch:Release Monday, 10 March 2008
See also
Section titled “See also”Constants
Section titled “Constants”Functions
Section titled “Functions”Events
Section titled “Events”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.