Template:LSL Constants/PrimitiveParams
multi-lang:
{{multi-lang}}{| class="sortable" |-
! class="sortable" |Flag
! class="sortable" title="Value" style="cursor: help;" |V
! class="sortable" |Description
! class="unsortable" |Usage
|-
| 27
| Sets the prim's name.
|-
| 28
| Sets the prim's description.
|-
| 9
| Sets the prim's shape.
|-
| 35
| Sets the prim's slice (a shape attribute).
|-
| 30
| Sets the prim's physics shape type.
|-
| 2
| Sets the prim's material.
| [ PRIM_MATERIAL, integer flag ]
|-
|-
| 3
| Sets the object's physics status.
|-
| 4
| Sets the object's temporary attribute.
|-
| 5
| Sets the object's phantom status.
|-
| 6
| Sets the prim's position.
|-
| 33
| Sets the prim's local position.
|-
| 8
| Sets the prim's global rotation.
|-
| 29
| Sets the prim's local rotation.
| [ LSL Const/ja:
{{LSL Const/ja|PRIM_ROT_LOCAL|integer|29|c=Used to {{GetSet||get|set|/}} the prim's local rotation}}, rotation rot ]|-
| 7
| Sets the prim's size.
|-
| 17
| Sets the prim's texture attributes.
| [ PRIM_TEXTURE, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians ]|-
| 49
| Sets the prim's
render_material. Setting this param will also clear most PRIM_GLTF_* properties on the face, with the exceptions of repeats, offsets, and rotation_in_radians|-
| 26
| Sets the prim's floating text.
|-
| 18
| Sets the face's color.
|-
| 19
| Sets the face's shiny & bump.
|-
| 23
| Sets the prim as a point light.
| [ PRIM_POINT_LIGHT, integer
boolean, vector linear_color, float intensity, float radius, float falloff ]|-
| 44
| Sets the prim as a reflection probe.
|-
| 20
| Sets the face's full bright flag.
|-
| 21
| Sets the prim as flexible.
| [ PRIM_FLEXIBLE, integer
boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ]|-
| 22
| Sets the face's texture mode.
|-
| 25
| Sets the face's glow attribute.
|-
| 32
| Sets the prim's spin to the specified axis and rate.
|-
| 37
| Sets the prim's normal map attributes.
|-
| 36
| Sets the prim's specular map attributes.
| [ PRIM_SPECULAR, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossiness, integer environment ]|-
| 38
| Sets the prim's diffuse texture alpha rendering mode attributes.
|-
| 34
| Sets the next linknumber to use in the linkset.
|-
| 24
| Sets the prim's cast shadow attribute. (DEPRECATED)
|-
| PRIM_TYPE_LEGACYFootnote:
{{Footnote|handle=ptl}}| 1
| Sets the prim's shape (legacy mode, DEPRECATED).
| [ 1, integer flag ] + flag_parameters
|-
| 39
| Avatars are allowed to manually stand up when seated on this prim. Only valid for prims in a valid experience.
| [ PRIM_ALLOW_UNSIT, integer
boolean ]|-
| 40
| Avatars are not permitted to manually sit on this prim.
| [ PRIM_SCRIPTED_SIT_ONLY, integer
boolean ]|-
| 41
| The sit target, if any defined for this prim.
|-
| 42
| Light projector settings for this prim.
|-
| 43
| Click action for this prim
| [ PRIM_CLICK_ACTION, integer
action ]LSL Constants/ClickAction:
{{LSL Constants/ClickAction}}|-
| 48
| Sets the prim's GLTF Material Base Color map attributes.
LSL Constants/PrimitiveParams/gltf caveats:
{{LSL_Constants/PrimitiveParams/gltf_caveats}} gltf_alpha_mode Flags | V | Description | ||
|---|---|---|---|---|
| PRIM_GLTF_ALPHA_MODE_OPAQUE | 0 | Ignore the alpha value and render the material as opaque. | ||
| PRIM_GLTF_ALPHA_MODE_BLEND | 1 | Render the material with transparency determined by the alpha value. Blending is done in linear color space. As is the case for Blinn-Phong as well, this mode suffers from depth sorting and performance issues. Use alpha mask instead when possible. | ||
| PRIM_GLTF_ALPHA_MODE_MASK | 2 | Render the material as fully opaque where the alpha value is greater than the alpha cutoff, and otherwise render the material as fully transparent. | ||
| [ PRIM_GLTF_BASE_COLOR, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector linear_color, float alpha, integer gltf_alpha_mode, float alpha_mask_cutoff, integer double_sided ]|-
| 45
| Sets the prim's GLTF Material Normal map attributes.
LSL Constants/PrimitiveParams/gltf caveats:
{{LSL_Constants/PrimitiveParams/gltf_caveats}}| [ PRIM_GLTF_NORMAL, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians ]|-
| 47
| Sets the prim's GLTF ORM map attributes (Occlusion, Roughness, Metallic).
LSL Constants/PrimitiveParams/gltf caveats:
{{LSL_Constants/PrimitiveParams/gltf_caveats}}| [ PRIM_GLTF_METALLIC_ROUGHNESS, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians, float metallic_factor, float roughness_factor ]|-
| 46
| Sets the prim's GLTF Material Emissive map attributes.
LSL Constants/PrimitiveParams/gltf caveats:
{{LSL_Constants/PrimitiveParams/gltf_caveats}}| [ PRIM_GLTF_EMISSIVE, integer
face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector linear_emissive_tint ]|-
| 50
| Sets the flags on the prim's sit target
LSL Constants/SitFlags:
{{LSL_Constants/SitFlags}}| [ PRIM_SIT_FLAGS, integer
flags ]|-
| 51
| Sets the damage and damage type delivered by a prim on collision.
|-
| 52
| Sets the health value for this prim.
| [ PRIM_HEALTH, float
health ]|}
LSL Constants/PrimitiveParams/sculpt types:
{{LSL Constants/PrimitiveParams/sculpt types}}PRIM_MATERIAL_LIGHT integer 7 b= e= c=light, DEPRECATED: Looks the same as [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ]
PRIM_TEXGEN_DEFAULT integer 0 m=3 s3=colspan="6" c=The texture repeats units are in texture repeats per face.
PRIM_TEXGEN_PLANAR integer 1 m=3 s3=colspan="6" c=The texture repeats units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.
| Parameter | Return Values / Additional Parameters | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[ string name ] | Name: llGetObjectName / llSetObjectName | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string description ] | Description: llGetObjectDesc / llSetObjectDesc | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [ integer flag ] + flag_parameters | Gets / Sets the prim shape. CustomToggle: {{CustomToggle|PRIM_TYPE|show=Would you like to know more?|link=PRIM_TYPE}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector slice ] | Gets / Sets the prim's slice (a shape attribute). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer type ] | Gets / Sets the prim's physics shape type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type Flags | V | Description | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_PHYSICS_SHAPE_PRIM | 0 | The visible shape of the prim determines its physics-shape | default for all non-mesh prims | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_PHYSICS_SHAPE_CONVEX | 2 | Use the convex hull formulas for generating the prim's physics-shape | default for all mesh prims | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_PHYSICS_SHAPE_NONE | 1 | The prim will not contribute to the object's physics-shape | This cannot be applied to the root prim or avatars. This prim has no physics representation at all. Like phantom objects, it will not collide with avatars or other objects. Unlike phantom prims, it will also pass freely through the terrain when the parent object is physical. Like volume detect it doesn't collide with terrain. Unlike volume detect, it will not register collision events. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer material ] | Gets / Sets the prim's material. The material determines the default collision sound, sprite, friction coefficient and restitution coefficient. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
material Flags | Description | Friction | Restitution | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.8 | 0.4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.3 | 0.4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.2 | 0.7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.6 | 0.5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.9 | 0.3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.4 | 0.7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0.9 | 0.9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| light, DEPRECATED: Looks the same as [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ] | 0.6 | 0.5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | Physics status llGetStatus / llSetStatus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | Temporary attribute | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | Phantom status llGetStatus / llSetStatus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector position ] | Position, llGetPos / llSetPos | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector position ] | Local position, llGetLocalPos / llSetPos | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ rotation rot ] | Global rotation, llGetRot / llSetRot (broken for child prims) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ rotation rot ] | Local rotation, llGetLocalRot / llSetLocalRot | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector size ] | Size, llGetScale / llSetScale | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians ] |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string render_material ] |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string text, vector color, float alpha ] | Floating Text: NA / llSetText | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector color, float alpha ] |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer shiny, integer bump ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shiny & bump Flags | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer mode ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mode Constants | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean, vector linear_color, float intensity, float radius, float falloff ] | linear_color param accepts color in Linear space - use llsRGB2Linear to convert regular LSL color into Linear space. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean, float ambiance, float clip_distance, integer flags ] | Gets / Sets the prim's reflection probe parameters. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type Flags | V | Description | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_REFLECTION_PROBE_BOX | 1 | Determines if the reflection probe is a box or a sphere. | Unset by default (probe is a sphere) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_REFLECTION_PROBE_DYNAMIC | 2 | Determines if avatars are included by the probe for imaging. | Unset by default (probe does not image avatars). Imaging avatars in probes has a performance cost. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PRIM_REFLECTION_PROBE_MIRROR | 4 | Determines if objects intersecting the probe act as a mirror. | Unset by default (probe does not act as a mirror). Rendering mirrors has a performance cost. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ float intensity ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector axis, float spinrate, float gain ] | llTargetOmega | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossiness integer environment ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer alpha_mode, integer mask_cutoff ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [] | Multiple llGetLinkPrimitiveParams / llSetLinkPrimitiveParams calls. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | DEPRECATED: Shadow casting for the primitive | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ 1 ]{{Footnote|handle=ptl}} | 1 | [ integer flag] + flag_parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| flag Constants | Flag Parameters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, float twist_end, vector top_size, vector top_shear ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, vector dimple ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, float twist_end, float hole_size_y, vector top_shear, vector advanced_cut ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ vector cut, float hollow, float twist_end, float topshear_x ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer boolean , vector offset, rotation rot ] | Sit target, llSitTarget. The position can be ZERO_VECTOR. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, float fov, float focus, float ambiance ] | Light projector settings, the texture may be NULL_KEY. (Write only, for now. See here) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer action ] | sets the default action to take when a user clicks on this prim.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ 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 ] | linear_color param accepts color in Linear space - use llsRGB2Linear to convert regular LSL color into Linear space. Template:LSL Constants/PrimitiveParams/gltf caveats: {{Template:LSL_Constants/PrimitiveParams/gltf_caveats}}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians ] | Template:LSL Constants/PrimitiveParams/gltf caveats: {{Template:LSL_Constants/PrimitiveParams/gltf_caveats}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians, float metallic_factor, float roughness_factor ] | Template:LSL Constants/PrimitiveParams/gltf caveats: {{Template:LSL_Constants/PrimitiveParams/gltf_caveats}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ string texture, vector repeats, vector offsets, float rotation_in_radians, vector emissive_tint ] | emissive_tint param accepts color in Linear space - use llsRGB2Linear to convert regular LSL color into Linear space. Template:LSL Constants/PrimitiveParams/gltf caveats: {{Template:LSL_Constants/PrimitiveParams/gltf_caveats}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ integer flags ] | Gets the sit flags currently set on this prim.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ float damage, integer damage_type ] | Gets the damage and damage type delivered by a prim on collision. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ float health ] | Gets the health of a prim | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Caveats
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.