PrimParamGet
Constants in the PrimParamGet enum.
// 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
| Constant | Type | Value | Description |
|---|---|---|---|
PRIM_ALLOW_UNSIT | integer | 39 | Prim 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_MODE | integer | 38 | Prim 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_SHINY | integer | 19 | Prim parameter used to get or set both the shininess and bump mapping settings of a face. |
PRIM_CLICK_ACTION | integer | 43 | 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 | integer | 53 | Prim parameter to set the collision sound UUID and volume level for the prim. |
PRIM_COLOR | integer | 18 | Prim 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_DAMAGE | integer | 51 | Prim parameter used to get or set the damage amount and damage type delivered by the prim on collision. |
PRIM_DESC | integer | 28 | Prim parameter [PRIM_DESC, string description] to get or set the prim's description (equivalent to llGetObjectDesc/llSetObjectDesc). |
PRIM_FLEXIBLE | integer | 21 | Prim 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_FULLBRIGHT | integer | 20 | Prim parameter [PRIM_FULLBRIGHT, integer face, integer boolean] to get or set whether full-bright rendering is enabled on the specified face. |
PRIM_GLOW | integer | 25 | 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). |
PRIM_GLTF_BASE_COLOR | integer | 48 | Prim 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_EMISSIVE | integer | 46 | Prim 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_ROUGHNESS | integer | 47 | Prim 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_NORMAL | integer | 45 | Prim parameter to get or set the GLTF normal map override of a face. Requires face, texture, repeats, offsets, and rotation arguments. |
PRIM_HEALTH | integer | 52 | Prim parameter used to get or set the health of the prim. Objects default to 0 health. |
PRIM_MATERIAL | integer | 2 | Prim 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_NAME | integer | 27 | Prim parameter [PRIM_NAME, string name] to get or set the prim's name (equivalent to llGetObjectName/llSetObjectName). |
PRIM_NORMAL | integer | 37 | Prim 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_OMEGA | integer | 32 | Prim 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_PHANTOM | integer | 5 | Prim parameter [PRIM_PHANTOM, integer boolean] to get or set whether phantom status is enabled. |
PRIM_PHYSICS | integer | 3 | Prim parameter [PRIM_PHYSICS, integer boolean] to get or set whether the object responds to Second Life physics. |
PRIM_PHYSICS_SHAPE_TYPE | integer | 30 | 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). Mainly used for physics optimization. |
PRIM_POINT_LIGHT | integer | 23 | Prim 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_LOCAL | integer | 33 | Prim parameter [PRIM_POS_LOCAL, vector position] to get or set the local position of a prim (equivalent to llGetLocalPos/llSetPos). |
PRIM_POSITION | integer | 6 | Prim 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_PROBE | integer | 44 | Prim 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_MATERIAL | integer | 49 | Prim 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_LOCAL | integer | 29 | Prim parameter [PRIM_ROT_LOCAL, rotation local_rot] to get or set the local rotation of a prim (equivalent to llGetLocalRot/llSetLocalRot). |
PRIM_ROTATION | integer | 8 | Prim 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_ONLY | integer | 40 | Prim 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_FLAGS | integer | 50 | Prim parameter used to get or set sit-related flags currently active on the prim. |
PRIM_SIT_TARGET | integer | 41 | Prim 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_SIZE | integer | 7 | Prim parameter [PRIM_SIZE, vector size] to get or set the prim's physical dimensions (equivalent to llGetScale/llSetScale). |
PRIM_SLICE | integer | 35 | Prim parameter [PRIM_SLICE, vector slice] to get or set the prim's slice values (a shape attribute equivalent to advanced cut). |
PRIM_SPECULAR | integer | 36 | Prim 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_REZ | integer | 4 | Prim 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_TEXGEN | integer | 22 | Prim parameter [PRIM_TEXGEN, integer face, integer mode] to get or set the texture mapping mode of the face. |
PRIM_TEXT | integer | 26 | Prim parameter [PRIM_TEXT, string text, vector color, float alpha] to get or set the object's floating/hover text (equivalent to llSetText). |
PRIM_TEXTURE | integer | 17 | Prim 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_TYPE | integer | 9 | Prim parameter used to get or set the geometric shape type (PRIM_TYPE_*) and its associated parameters. |
Used by
llGetLinkPrimitiveParamsfunctionReturns a list of primitive parameters requested in params for the linked prim specified by link (equivalent to llGetPrimitiveParams).llGetPrimitiveParamsfunctionReturns a list of primitive attribute values matching the requested params list.