integer PRIM_TYPE = 9;llSetLinkPrimitiveParamsFastPRIM_TYPE, integer valuellGetLinkPrimitiveParams, llGetPrimitiveParamsPRIM_TYPE → integer valueinteger value// Followed by the arguments of that form. Values: PrimType
Prim parameter used to get or set the geometric shape type (PRIM_TYPE_*) and its associated parameters.
Other PrimParam values (42)
PRIM_ALLOW_UNSIT39PRIM_ALPHA_MODE38PRIM_BUMP_SHINY19PRIM_CLICK_ACTION43PRIM_COLLISION_SOUND53PRIM_COLOR18PRIM_DAMAGE51PRIM_DESC28PRIM_FLEXIBLE21PRIM_FULLBRIGHT20PRIM_GLOW25PRIM_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_TEXTURE17
Other PrimParamGet values (40)
PRIM_ALLOW_UNSIT39PRIM_ALPHA_MODE38PRIM_BUMP_SHINY19PRIM_CLICK_ACTION43PRIM_COLLISION_SOUND53PRIM_COLOR18PRIM_DAMAGE51PRIM_DESC28PRIM_FLEXIBLE21PRIM_FULLBRIGHT20PRIM_GLOW25PRIM_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_TEXTURE17
Gets or sets the type_flag of the prim and associated type type_parameters.
[ PRIM_TYPE, integer flag ] + flag_parameters- integer flag — PRIM_TYPE_* flag
Used with llSetPrimitiveParams & llSetLinkPrimitiveParams.
The values needed for type_parameters is dependent on type_flag, please refer to the individual PRIM_TYPE_* articles for additional information.
Caveats
Section titled “Caveats”PRIM_TYPEcan only be used withLINK_SETif the object contains 10 or fewer prims. It can only be used withLINK_ALL_OTHERSorLINK_ALL_CHILDRENif the object contains 11 or fewer prims. If there are more prims, the operation will fail and an error will be shouted toDEBUG_CHANNEL. Work around this by looping through the prims withllSetLinkPrimitiveParamsFast.PRIM_TYPEwill silently fail when executed by a script placed inside a mesh, whether the affect object is the mesh or not (in linksets for example), use a normal prim as your root prim.
llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_TYPE ]);Returns the same values, in the same order.
The values that follow after type_flag, the type_parameters, are dependent on the value of flag, please refer to the individual PRIM_TYPE_* articles for further information.
| Constant | Type | Value | Description |
|---|---|---|---|
PRIM_TYPE_BOX | integer | 0 | |
PRIM_TYPE_CYLINDER | integer | 1 | |
PRIM_TYPE_PRISM | integer | 2 | |
PRIM_TYPE_SPHERE | integer | 3 | |
PRIM_TYPE_TORUS | integer | 4 | |
PRIM_TYPE_TUBE | integer | 5 | |
PRIM_TYPE_RING | integer | 6 | |
PRIM_TYPE_SCULPT | integer | 7 |
| flag Constants | flag_parameters | ||||||
|---|---|---|---|---|---|---|---|
| [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector dimple] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ] | |||||||
| [ integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ] | |||||||
| [ string map, integer type ] | |||||||
integer PRIM_HOLE_DEFAULT = 0x00; // Parameter used with certain PRIM_TYPE_* flags to make a hole of the same shape as the outer shape via the hole_shape parameterinteger PRIM_HOLE_CIRCLE = 0x10; // Parameter used with certain PRIM_TYPE_* flags to make a circular hole via the hole_shape parameterinteger PRIM_HOLE_SQUARE = 0x20; // Parameter used with certain PRIM_TYPE_* flags to make a squarish hole via the hole_shape parameterinteger PRIM_HOLE_TRIANGLE = 0x30; // Parameter used with certain PRIM_TYPE_* flags to make a triangular hole via the hole_shape parameter
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.