Difference between revisions of "User:Strife Onizuka/PRIM TYPE"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:
<div style="display:inline-block; vertical-align: top;">{{LSL Constants/PrimitiveParams/sculpt types|{{{1|}}}|style=margin:1px; padding:0;|table=*|sortable=*}}</div>
<div style="display:inline-block; vertical-align: top;">{{LSL Constants/PrimitiveParams/sculpt types|{{{1|}}}|style=margin:1px; padding:0;|table=*|sortable=*}}</div>
<div style="display:inline-block; vertical-align: top;">{{LSL_Constants/PrimitiveParams/holeshape  |{{{1|}}}|style=margin:1px; padding:0;|table=*|sortable=*}}</div>
<div style="display:inline-block; vertical-align: top;">{{LSL_Constants/PrimitiveParams/holeshape  |{{{1|}}}|style=margin:1px; padding:0;|table=*|sortable=*}}</div>
<div style="display:inline-block; vertical-align: top;">{{LSL_Constants/PrimitiveParams/taper|style=margin:1px; padding:0;}}</div>
|text-get=The values that follow after '''{{LSL Param|type_flag|flag}}''', the '''{{LSL Param|type_parameters|flag_parameters}}''', are dependent on the value of '''flag''', please refer to the individual PRIM_TYPE_* articles for further information.
|text-get=The values that follow after '''{{LSL Param|type_flag|flag}}''', the '''{{LSL Param|type_parameters|flag_parameters}}''', are dependent on the value of '''flag''', please refer to the individual PRIM_TYPE_* articles for further information.
|text-set=The values needed for '''{{LSL Param|type_parameters|flag_parameters}}''' is dependent on '''{{LSL Param|type_flag|flag}}''', please refer to the individual PRIM_TYPE_* articles for additional information.
|text-set=The values needed for '''{{LSL Param|type_parameters|flag_parameters}}''' is dependent on '''{{LSL Param|type_flag|flag}}''', please refer to the individual PRIM_TYPE_* articles for additional information.
{{LSL Generic/Caveats|caveats={{#var:caveats-set}}|title=*}}
{{LSL Generic/Caveats|caveats={{#var:caveats-set}}|title=*|h=4}}
|name=PRIM_TYPE
|name=PRIM_TYPE
|type=integer
|type=integer

Latest revision as of 01:35, 19 November 2010

Description

Constant: integer PRIM_TYPE = 9;

The integer constant PRIM_TYPE has the value 9

Gets or sets the type of the prim and associated type flag_parameters.

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_TYPE ])

Returns the list [ integer flag ] + flag_parameters

• integer flag PRIM_TYPE_* flag

• list flag_parameters a list consisting of the parameters for flag

The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call. The values that follow after flag, the flag_parameters, are dependent on the value of flag, please refer to the individual PRIM_TYPE_* articles for further information.

llSetPrimitiveParams

llSetPrimitiveParams([ PRIM_TYPE, integer flag ] + flag_parameters )
• integer flag PRIM_TYPE_* flag

• list flag_parameters a list consisting of the parameters for flag

The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call. The values needed for flag_parameters is dependent on flag, please refer to the individual PRIM_TYPE_* articles for additional information.

Caveats

flag Constants flag_parameters
PRIM_TYPE_BOX 0 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_CYLINDER 1 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_PRISM 2 [ integer hole_shape, vector cut, float hollow, vector twist, vector top_size, vector top_shear ]
PRIM_TYPE_SPHERE 3 [ integer hole_shape, vector cut, float hollow, vector twist, vector dimple]
PRIM_TYPE_TORUS 4 [ 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 ]
PRIM_TYPE_TUBE 5 [ 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 ]
PRIM_TYPE_RING 6 [ 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 ]
PRIM_TYPE_SCULPT 7 [ string map, integer type ]

Caveats

Related Articles

Constants

•  CHANGED_SHAPE

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Deep Notes