Skip to content
lsl.devlsl.devLSL Dev

Constants in the PrimParamGet enum.

All constant groups

At a glance, from the LSL definitions
// OtherPRIM_ALLOW_UNSIT  // Prim parameter for allowing or restricting manual standing for avatars seated on this prim within a valid experience.PRIM_ALPHA_MODE, integer face, integer alpha_mode, integer mask_cutoff  // Prim parameter used to set diffuse texture alpha rendering mode attributes.PRIM_BUMP_SHINY, integer face, integer shiny, integer bump  // Prim parameter used to get or set both the shininess and bump mapping settings of a face.PRIM_CLICK_ACTION  // Prim parameter followed by a CLICK_ACTION_* constant to specify the default action taken when a user clicks or touches the prim.PRIM_COLLISION_SOUND, string sound, float volume  // Prim parameter to set the collision sound UUID and volume level for the prim.PRIM_COLOR, integer face, vector color, float alpha  // Prim parameter to get or set the Blinn-Phong color and opacity of a face.PRIM_DAMAGE, float damage, integer damage_type  // Prim parameter used to get or set the damage amount and damage type delivered by the prim on collision.PRIM_DESC, string description  // Prim parameter to get or set the prim's description (equivalent to llGetObjectDesc/llSetObjectDesc).PRIM_FLEXIBLE, integer enabled, integer softness, float gravity, float friction, float wind, float tension, vector force  // Prim parameter to get or set the prim's flexible configuration.PRIM_FULLBRIGHT, integer face, integer enabled  // Prim parameter to get or set whether full-bright rendering is enabled on the specified face.PRIM_GLOW, integer face, float intensity  // Prim parameter to get or set the glow intensity on a face (the compiler integer value is 25 if the named constant is rejected).PRIM_HEALTH  // Prim parameter used to get or set the health of the prim.PRIM_MATERIAL, integer PRIM_MATERIAL_*  // Prim parameter to get or set the prim's material.PRIM_NAME, string name  // Prim parameter to get or set the prim's name (equivalent to llGetObjectName/llSetObjectName).PRIM_NORMAL, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians  // Prim parameter to get or set the Blinn-Phong normal map texture settings of a face.PRIM_OMEGA, vector axis, float spinrate, float gain  // Prim parameter to get, set, or disable a client-side physical-like rotation (analogous to llTargetOmega).PRIM_PHANTOM, integer boolean  // Prim parameter to get or set whether phantom status is enabled.PRIM_POINT_LIGHT, integer enabled, vector linear_color, float intensity, float radius, float falloff  // Prim parameter to configure local lighting.PRIM_POS_LOCAL, vector position  // Prim parameter to get or set the local position of a prim (equivalent to llGetLocalPos/llSetPos).PRIM_POSITION, vector position  // Prim parameter to get or set the position of the prim in region coordinates (or local coordinates depending on the script context).PRIM_REFLECTION_PROBE, integer enabled, float ambiance, float clip_distance, integer flags  // Prim parameter to configure the object as a custom-placed reflection probe for Image-Based Lighting (IBL).PRIM_RENDER_MATERIAL, integer face, string render_material  // Prim parameter to get or set face material settings.PRIM_ROT_LOCAL, rotation local_rot  // Prim parameter to get or set the local rotation of a prim (equivalent to llGetLocalRot/llSetLocalRot).PRIM_ROTATION, rotation global_rot  // Prim parameter to get or set the global rotation of the prim (equivalent to llGetRot/llSetRot; note that setting this on child prims may be broken).PRIM_SCRIPTED_SIT_ONLY  // Prim parameter restricting manual sitting on this prim.PRIM_SIZE, vector size  // Prim parameter to get or set the prim's physical dimensions (equivalent to llGetScale/llSetScale).PRIM_SLICE, vector slice  // Prim parameter to get or set the prim's slice values (a shape attribute equivalent to advanced cut).PRIM_SPECULAR, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossiness, integer environment  // Prim parameter to get or set the Blinn-Phong specular map texture settings of a face.PRIM_TEMP_ON_REZ  // Prim parameter used to get or set the object's temporary status.PRIM_TEXGEN, integer face, integer mode  // Prim parameter to get or set the texture mapping mode of the face.PRIM_TEXT, string text, vector color, float alpha  // Prim parameter to get or set the object's floating/hover text (equivalent to llSetText).PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians  // Prim parameter to get or set the Blinn-Phong diffuse texture settings of a face.PRIM_TYPE  // Prim parameter used to get or set the geometric shape type (PRIM_TYPE_*) and its associated parameters.// PRIM_GLTF_*PRIM_GLTF_BASE_COLOR, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, float alpha, integer gltf_alpha_mode, float alpha_mask_cutoff, integer double_sided  // Prim parameter to get or set the GLTF base color override of an object's face.PRIM_GLTF_EMISSIVE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector emissive_tint  // Prim parameter to get or set the GLTF emission override of a face.PRIM_GLTF_METALLIC_ROUGHNESS, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, float metallic_factor, float roughness_factor  // Prim parameter to get or set the GLTF occlusion/metallic/roughness override of a face.PRIM_GLTF_NORMAL, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians  // Prim parameter to get or set the GLTF normal map override of a face.// PRIM_PHYSICS_*PRIM_PHYSICS, integer boolean  // Prim parameter to get or set whether the object responds to Second Life physics.PRIM_PHYSICS_SHAPE_TYPE  // Prim parameter used to get or set the type of shape the physics engine uses for the prim (PRIM_PHYSICS_SHAPE_NONE, _PRIM, or _CONVEX).// PRIM_SIT_*PRIM_SIT_FLAGS  // Prim parameter used to get or set sit-related flags currently active on the prim.PRIM_SIT_TARGET, integer sit_target, vector offset, rotation rot  // Prim parameter to get or set the prim's sit target.

Constants

ConstantTypeValueDescription
PRIM_ALLOW_UNSITinteger39Prim parameter for allowing or restricting manual standing for avatars seated on this prim within a valid experience. Ignored if the avatar was not seated via llSitOnLink. When restriction is active, participating seated avatars cannot manually stand or select another prim to sit on.
PRIM_ALPHA_MODEinteger38Prim parameter used to set diffuse texture alpha rendering mode attributes. Requires face, alpha_mode (PRIM_ALPHA_MODE_BLEND, _NONE, _MASK, or _EMISSIVE), and alpha_cutoff (used only for _MASK) parameters.
PRIM_BUMP_SHINYinteger19Prim parameter used to get or set both the shininess and bump mapping settings of a face.
PRIM_CLICK_ACTIONinteger43Prim parameter followed by a CLICK_ACTION_* constant to specify the default action taken when a user clicks or touches the prim.
PRIM_COLLISION_SOUNDinteger53Prim parameter to set the collision sound UUID and volume level for the prim.
PRIM_COLORinteger18Prim parameter to get or set the Blinn-Phong color and opacity of a face. integer face – face number or ALL_SIDES vector color – color in RGB <R, G, B> (<0.0, 0.0, 0.0> = black, <1.0, 1.0, 1.0> = white) float alpha – from 0.0 (clear) to 1.0 (solid) (0.0 <= alpha <= 1.0)
PRIM_DAMAGEinteger51Prim parameter used to get or set the damage amount and damage type delivered by the prim on collision.
PRIM_DESCinteger28Prim parameter [PRIM_DESC, string description] to get or set the prim's description (equivalent to llGetObjectDesc/llSetObjectDesc).
PRIM_FLEXIBLEinteger21Prim parameter to get or set the prim's flexible configuration. integer boolean – TRUE enables, FALSE disables integer softness – ranges from 0 to 3 float gravity – ranges from -10.0 to 10.0 float friction – ranges from 0.0 to 10.0 float wind – ranges from 0.0 to 10.0 float tension – ranges from 0.0 to 10.0 vector force
PRIM_FULLBRIGHTinteger20Prim parameter [PRIM_FULLBRIGHT, integer face, integer boolean] to get or set whether full-bright rendering is enabled on the specified face.
PRIM_GLOWinteger25Prim 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).
PRIM_GLTF_BASE_COLORinteger48Prim parameter to get or set the GLTF base color override of an object's face. Requires face, texture, repeats, offsets, rotation, linear_color (in linear space; use llsRGB2Linear), alpha_mode (PRIM_GLTF_ALPHA_MODE_*), alpha_cutoff, and double_sided arguments.
PRIM_GLTF_EMISSIVEinteger46Prim parameter to get or set the GLTF emission override of a face. Requires face, texture, repeats, offsets, rotation, and emissive_tint (specified in linear space; use llsRGB2Linear).
PRIM_GLTF_METALLIC_ROUGHNESSinteger47Prim parameter to get or set the GLTF occlusion/metallic/roughness override of a face. Requires face, texture, repeats, offsets, rotation, metallic_factor, and roughness_factor arguments.
PRIM_GLTF_NORMALinteger45Prim parameter to get or set the GLTF normal map override of a face. Requires face, texture, repeats, offsets, and rotation arguments.
PRIM_HEALTHinteger52Prim parameter used to get or set the health of the prim. Objects default to 0 health.
PRIM_MATERIALinteger2Prim parameter [PRIM_MATERIAL, integer PRIM_MATERIAL_*] to get or set the prim's material. The material determines the default collision sound, sprite, friction coefficient, and restitution coefficient (elasticity) without affecting mass.
PRIM_NAMEinteger27Prim parameter [PRIM_NAME, string name] to get or set the prim's name (equivalent to llGetObjectName/llSetObjectName).
PRIM_NORMALinteger37Prim parameter to get or set the Blinn-Phong normal map texture settings of a face. Requires face, texture, repeats, offsets, and rotation_in_radians arguments.
PRIM_OMEGAinteger32Prim parameter to get, set, or disable a client-side physical-like rotation (analogous to llTargetOmega). vector axis – arbitrary axis to rotate the object around float spinrate – rate of rotation in radians per second float gain – also modulates the final spinrate and disables the rotation behavior if zero
PRIM_PHANTOMinteger5Prim parameter [PRIM_PHANTOM, integer boolean] to get or set whether phantom status is enabled.
PRIM_PHYSICSinteger3Prim parameter [PRIM_PHYSICS, integer boolean] to get or set whether the object responds to Second Life physics.
PRIM_PHYSICS_SHAPE_TYPEinteger30Prim parameter used to get or set the type of shape the physics engine uses for the prim (PRIM_PHYSICS_SHAPE_NONE, _PRIM, or _CONVEX). Mainly used for physics optimization.
PRIM_POINT_LIGHTinteger23Prim parameter to configure local lighting. Accepts color in linear space (use llsRGB2Linear to convert from sRGB). integer boolean – TRUE enables, FALSE disables vector linear_color – linear color in RGB <R, G, B&> (<0.0, 0.0, 0.0> = black, <1.0, 1.0, 1.0> = white) float intensity – ranges from 0.0 to 1.0 float radius – ranges from 0.1 to 20.0 float falloff – ranges from 0.01 to 2.0
PRIM_POS_LOCALinteger33Prim parameter [PRIM_POS_LOCAL, vector position] to get or set the local position of a prim (equivalent to llGetLocalPos/llSetPos).
PRIM_POSITIONinteger6Prim parameter [PRIM_POSITION, vector position] to get or set the position of the prim in region coordinates (or local coordinates depending on the script context).
PRIM_REFLECTION_PROBEinteger44Prim parameter to configure the object as a custom-placed reflection probe for Image-Based Lighting (IBL). Only affects objects inside its volume of influence.
PRIM_RENDER_MATERIALinteger49Prim parameter [PRIM_RENDER_MATERIAL, integer face, string material] to get or set face material settings. Note: Setting this clears most PRIM_GLTF_* properties on the face, except for repeats, offsets, and rotation_in_radians.
PRIM_ROT_LOCALinteger29Prim parameter [PRIM_ROT_LOCAL, rotation local_rot] to get or set the local rotation of a prim (equivalent to llGetLocalRot/llSetLocalRot).
PRIM_ROTATIONinteger8Prim parameter [PRIM_ROTATION, rotation global_rot] to get or set the global rotation of the prim (equivalent to llGetRot/llSetRot; note that setting this on child prims may be broken).
PRIM_SCRIPTED_SIT_ONLYinteger40Prim parameter restricting manual sitting on this prim. When active, sitting can only be initiated via llSitOnLink; manual sitting attempts fail. This restriction applies even outside experience-enabled regions.
PRIM_SIT_FLAGSinteger50Prim parameter used to get or set sit-related flags currently active on the prim.
PRIM_SIT_TARGETinteger41Prim parameter [PRIM_SIT_TARGET, integer boolean, vector offset, rotation rot] to get or set the prim's sit target. Setting the boolean to FALSE deactivates the target. Unlike llLinkSitTarget, offset <0.0, 0.0, 0.0> can be explicitly set.
PRIM_SIZEinteger7Prim parameter [PRIM_SIZE, vector size] to get or set the prim's physical dimensions (equivalent to llGetScale/llSetScale).
PRIM_SLICEinteger35Prim parameter [PRIM_SLICE, vector slice] to get or set the prim's slice values (a shape attribute equivalent to advanced cut).
PRIM_SPECULARinteger36Prim parameter to get or set the Blinn-Phong specular map texture settings of a face. Requires face, texture, repeats, offsets, rotation_in_radians, color, glossy, and environment arguments.
PRIM_TEMP_ON_REZinteger4Prim parameter used to get or set the object's temporary status. Temporary objects live until the next garbage collection cycle (about 1 minute), do not count against normal prim limits, but are subject to regional limits.
PRIM_TEXGENinteger22Prim parameter [PRIM_TEXGEN, integer face, integer mode] to get or set the texture mapping mode of the face.
PRIM_TEXTinteger26Prim parameter [PRIM_TEXT, string text, vector color, float alpha] to get or set the object's floating/hover text (equivalent to llSetText).
PRIM_TEXTUREinteger17Prim parameter [PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians] to get or set the Blinn-Phong diffuse texture settings of a face.
PRIM_TYPEinteger9Prim parameter used to get or set the geometric shape type (PRIM_TYPE_*) and its associated parameters.

Used by