PRIM TYPE
Looking for the current API? Open the PRIM_TYPE reference →
Wiki description
Gets or sets the
type_flag of the prim and associated type type_parameters.Usage
[ PRIM_TYPE, integer flag ] + flag_parameters
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
- PRIM_TYPE can only be used with LINK_SET if the object contains 10 or fewer prims. It can only be used with LINK_ALL_OTHERS or LINK_ALL_CHILDREN if the object contains 11 or fewer prims. If there are more prims, the operation will fail and an error will be shouted to DEBUG_CHANNEL. Work around this by looping through the prims with llSetLinkPrimitiveParamsFast.
- PRIM_TYPE will 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.
llGetPrimitiveParams([ PRIM_TYPE ]);
Returns the list
[ integer flagThe 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.| 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 ] | |||||||
hole_shape Flags | Shape | hole_shape Flags | Shape | ||
|---|---|---|---|---|---|
See also: constants
See also: functions
See also: events
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Template:LSL PrimitiveParam Categorize
Original shared helper source (conditional wiki logic is not evaluated)
{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||{{#vardefine:hidden-text|{{#var:hidden-text}}
{{#ifexist:Template:LSLC{{#var:lang}}|
{{LSLC{{#var:lang}}|PrimitiveParams}}
{{LSLC{{#var:lang}}|PrimitiveParams/{{{1}}}}}
{{LSLC{{#var:lang}}|{{{1}}}}}
|
{{LSLC|PrimitiveParams{{#var:lang}}}}
{{LSLC|PrimitiveParams/{{{1}}}{{#var:lang}}}}
{{LSLC|{{{1}}}{{#var:lang}}}}
}}
}}}}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.