Difference between revisions of "User:Strife Onizuka/PrimitiveParamsTable"

From Second Life Wiki
Jump to navigation Jump to search
m (Created page with '{{{!}} class="sortable" {{Prettytable|style=margin: 0px 0px 10px 1pt;}} {{!}}- {{Hl2}} style="white-space:nowrap;" ! class="sortable" {{!}}Flag ! class="sortable" title="Value" s...')
 
m
Line 1: Line 1:
{{{!}} class="sortable" {{Prettytable|style=margin: 0px 0px 10px 1pt;}}
{{#if:
 
{{:PRIM_TYPE|{{{1|}}}}}
{{:PRIM_NAME|{{{1|}}}}}
{{:PRIM_DESC|{{{1|}}}}}
 
}}{{{!}} class="sortable" width="100%" {{Prettytable|style=margin: 0px 0px 10px 1pt;}}
{{!}}- {{Hl2}} style="white-space:nowrap;"
{{!}}- {{Hl2}} style="white-space:nowrap;"
! class="sortable" {{!}}Flag
! class="sortable" {{!}}Flag
! class="sortable" title="Value" style="cursor: help;" {{!}}<span style="border-bottom: 1px dotted;">V</span>
! class="sortable" title="Value" style="cursor: help;" {{!}}<span style="border-bottom: 1px dotted;">V</span>
! class="sortable" {{!}}Description
! class="sortable" width="100%" {{!}}Description & Usage
! class="unsortable" {{!}}Usage
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[#PRIM_NAME|PRIM_NAME]]
{{!}} [[#PRIM_NAME|PRIM_NAME]]
{{!}} 27
{{!}} 27
{{!}} {{QCC|auto=*|title={{PBR}}
{{{!}} cellpadding="0" cellspacing="0" style="background-color:transparent;" width="100%"
{{!}} Sets the prim's name.
{{!}} Sets the prim's name.
{{!}} {{QCC|auto=*|title=[&nbsp;{{#var:name_const}}, [[string]]&nbsp;{{LSL Param|name}}&nbsp;]|content=}}
{{!}} style="text-align:right;" {{!}} [&nbsp;{{#var:name_const}}, [[string]]&nbsp;{{LSL Param|name}}&nbsp;]
{{!}}}|content=}}
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[#PRIM_DESC|PRIM_DESC]]
{{!}} [[#PRIM_DESC|PRIM_DESC]]
{{!}} 28
{{!}} 28
{{!}} {{QCC|auto=*|title={{PBR}}
{{{!}} cellpadding="0" cellspacing="0" style="background-color:transparent;" width="100%"
{{!}} Sets the prim's description.
{{!}} Sets the prim's description.
{{!}} {{QCC|auto=*|title=[&nbsp;{{#var:desc_const}}, [[string]]&nbsp;{{LSL Param|description}}&nbsp;]|content=}}
{{!}} style="text-align:right;" {{!}} [&nbsp;{{#var:desc_const}}, [[string]]&nbsp;{{LSL Param|description}}&nbsp;]
{{!}}}|content=}}
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[#PRIM_TYPE|PRIM_TYPE]]
{{!}} [[#PRIM_TYPE|PRIM_TYPE]]
{{!}} 9
{{!}} 9
{{!}} {{QCC|auto=*|title={{PBR}}
{{{!}} cellpadding="0" cellspacing="0" style="background-color:transparent;" width="100%"
{{!}} Sets the prim's shape.
{{!}} Sets the prim's shape.
{{!}} {{QCC|auto=*|title=[&nbsp;{{#var:type_const}}, [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}}&nbsp;]&nbsp;+ {{HoverLink|#PRIM_TYPE_flag_parameters|Additional parameters required by the flag|flag_parameters}}|content={{PBR}}
{{!}} style="text-align:right;" {{!}} [&nbsp;{{#var:type_const}}, [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}}&nbsp;]&nbsp;+ {{HoverText|flag_parameters|Additional parameters required by the flag, click [show]}}
{{{!}}
{{!}}}|content={{PBR}}
{{{!}} {{Prettytable|style=margin:0 0 0 0; padding:0; width:100%;}}
{{LSL Constants/PrimitiveParams/type|{{{1|}}}}}
{{LSL Constants/PrimitiveParams/type|{{{1|}}}}}
{{!}}}
{{!}}} }}
}}
{{!}}-
{{!}}-
{{!}}}
{{!}}}

Revision as of 22:32, 14 November 2010

Flag V Description & Usage
PRIM_NAME 27
Sets the prim's name. PRIM_NAME, string name ]
Inv item eyes.png
PRIM_DESC 28
Sets the prim's description. PRIM_DESC, string description ]
Inv item eyes.png
PRIM_TYPE 9
Sets the prim's shape. PRIM_TYPE, integer flag ] + flag_parameters
Inv item eyes.png
flag Constants Additional Return Values / 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 ] Sculpted_Prims:_FAQ
  hole_shape Flags Shape hole_shape Flags Shape
PRIM_HOLE_DEFAULT 0x00 Default PRIM_HOLE_SQUARE 0x20 Square
PRIM_HOLE_CIRCLE 0x10 Circle PRIM_HOLE_TRIANGLE 0x30 Triangle
type Flags Style Description
PRIM_SCULPT_TYPE_SPHERE 1 Sphere Converge top & bottom, stitch left side to right
PRIM_SCULPT_TYPE_TORUS 2 Torus Stitch top to bottom, stitch left side to right
PRIM_SCULPT_TYPE_PLANE 3 Plane No stitching or converging
PRIM_SCULPT_TYPE_CYLINDER 4 Cylinder Stitch left side to right.
PRIM_SCULPT_TYPE_MESH 5 Mesh model See: Mesh
PRIM_SCULPT_FLAG_ZZZZZZZZ 63
PRIM_SCULPT_FLAG_ANIMESH 0x20 Animesh Read-only flag to query Animated mesh status.
PRIM_SCULPT_FLAG_INVERT 0x40 Invert Render inside out (inverts the normals).
PRIM_SCULPT_FLAG_MIRROR 0x80 Mirror Render an X axis mirror of the sculpty.