Primitive params

Table of contents

PRIM_NAME

PRIM_NAME, string name

Sets the prim's name.

PRIM_DESC

PRIM_DESC, string description

Sets the prim's description.

PRIM_TYPE

PRIM_TYPE, integer flag, [ flag_parameters ]

Sets the prim's shape.

PRIM_SLICE

PRIM_SLICE, vector slice

Sets the prim's slice (a shape attribute).

PRIM_PHYSICS_SHAPE_TYPE

PRIM_PHYSICS_SHAPE_TYPE, integer type

Sets the prim's physics shape type.

PRIM_MATERIAL

PRIM_MATERIAL, integer flag

Sets the prim's material.

PRIM_PHYSICS

PRIM_PHYSICS, integer boolean

Sets the object's physics status.

PRIM_TEMP_ON_REZ

PRIM_TEMP_ON_REZ, integer boolean

Sets the object's temporary attribute.

PRIM_PHANTOM

PRIM_PHANTOM, integer boolean

Sets the object's phantom status.

PRIM_POSITION

PRIM_POSITION, vector position

Sets the prim's position.

PRIM_POS_LOCAL

PRIM_POS_LOCAL, vector position

Sets the prim's local position.

PRIM_ROTATION

PRIM_ROTATION, rotation rot

Sets the prim's global rotation.

PRIM_ROT_LOCAL

PRIM_ROT_LOCAL, rotation rot

Sets the prim's local rotation.

PRIM_SIZE

PRIM_SIZE, vector size

Sets the prim's size.

PRIM_TEXTURE

PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians

Sets the prim's texture attributes.

PRIM_RENDER_MATERIAL

PRIM_RENDER_MATERIAL, integer face, string render_material

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

PRIM_TEXT

PRIM_TEXT, string text, vector color, float alpha

Sets the prim's floating text.

PRIM_COLOR

PRIM_COLOR, integer face, vector color, float alpha

Sets the face's color.

PRIM_BUMP_SHINY

PRIM_BUMP_SHINY, integer face, integer shiny, integer bump

Sets the face's shiny & bump.

PRIM_POINT_LIGHT

PRIM_POINT_LIGHT, integer boolean, vector linear_color, float intensity, float radius, float falloff

Sets the prim as a point light.

PRIM_REFLECTION_PROBE

PRIM_REFLECTION_PROBE, integer boolean, float ambiance, float clip_distance, integer flags

Sets the prim as a reflection probe.

PRIM_FULLBRIGHT

PRIM_FULLBRIGHT, integer face, integer boolean

Sets the face's full bright flag.

PRIM_FLEXIBLE

PRIM_FLEXIBLE, integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force

Sets the prim as flexible.

PRIM_TEXGEN

PRIM_TEXGEN, integer face, integer type

Sets the face's texture mode.

PRIM_GLOW

PRIM_GLOW, integer face, float intensity

Sets the face's glow attribute.

PRIM_OMEGA

PRIM_OMEGA, vector axis, float spinrate, float gain

Sets the prim's spin to the specified axis and rate.

PRIM_NORMAL

PRIM_NORMAL, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians

Sets the prim's normal map attributes.

PRIM_SPECULAR

PRIM_SPECULAR, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossiness, integer environment

Sets the prim's specular map attributes.

PRIM_ALPHA_MODE

PRIM_ALPHA_MODE, integer face, integer alpha_mode, integer mask_cutoff

Sets the prim's diffuse texture alpha rendering mode attributes.

PRIM_LINK_TARGET

PRIM_LINK_TARGET, integer link_target

Sets the next linknumber to use in the linkset.

PRIM_CAST_SHADOWS

PRIM_CAST_SHADOWS, integer boolean

Sets the prim's cast shadow attribute. (DEPRECATED)

PRIM_TYPE_LEGACY

PRIM_TYPE_LEGACY, integer flag, [ flag_parameters ]

Sets the prim's shape (legacy mode, DEPRECATED).

PRIM_ALLOW_UNSIT

PRIM_ALLOW_UNSIT, integer boolean

Avatars are allowed to manually stand up when seated on this prim. Only valid for prims in a valid experience.

PRIM_SCRIPTED_SIT_ONLY

PRIM_SCRIPTED_SIT_ONLY, integer boolean

Avatars are not permitted to manually sit on this prim.

PRIM_SIT_TARGET

PRIM_SIT_TARGET, integer boolean, vector offset, rotation rot

The sit target, if any defined for this prim.

PRIM_PROJECTOR

PRIM_PROJECTOR, string texture, float fov, float focus, float ambiance

Light projector settings for this prim.

PRIM_CLICK_ACTION

PRIM_CLICK_ACTION, integer action

Click action for this prim

PRIM_GLTF_BASE_COLOR

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

Sets the prim's GLTF Material Base Color map attributes.

PRIM_GLTF_NORMAL

PRIM_GLTF_NORMAL, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians

Sets the prim's GLTF Material Normal map attributes.

PRIM_GLTF_METALLIC_ROUGHNESS

PRIM_GLTF_METALLIC_ROUGHNESS, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, float metallic_factor, float roughness_factor

Sets the prim's GLTF ORM map attributes (Occlusion, Roughness, Metallic).

PRIM_GLTF_EMISSIVE

PRIM_GLTF_EMISSIVE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector linear_emissive_tint

Sets the prim's GLTF Material Emissive map attributes.

PRIM_SIT_FLAGS

PRIM_SIT_FLAGS, integer flags

Sets the flags on the prim's sit target

PRIM_DAMAGE

PRIM_DAMAGE, float damage, integer damage_type

Sets the damage and damage type delivered by a prim on collision.

PRIM_HEALTH

PRIM_HEALTH, float health

Sets the health value for this prim.

© 2025 TOTO Lab.

Tutorial text and media are licensed under CC BY-NC 4.0, and code examples are CC0 by default unless noted otherwise in comments. You may share or adapt for non-commercial use with attribution.

Second Life and SL are trademarks of Linden Research, Inc. TOTO Lab and MIRAI TECH are not affiliated with or sponsored by Linden Research.