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

From Second Life Wiki
Jump to navigation Jump to search
m
m (simplify)
Line 4: Line 4:
{{#vardefine:TRMS|{{#var:TRM}}{{#var:TRMS}}}}  {{#vardefine:TRM|P}} {{#vardefine:PPC-1| {{{1|}}} }}
{{#vardefine:TRMS|{{#var:TRM}}{{#var:TRMS}}}}  {{#vardefine:TRM|P}} {{#vardefine:PPC-1| {{{1|}}} }}


<!--{{:PRIM_NAME|{{{1|}}}}}-->
<!--{{:PRIM_NAME|{{{1|}}}}}
{{:PRIM_DESC|{{{1|}}}}}
{{:PRIM_DESC|{{{1|}}}}}
{{:PRIM_COLOR|{{{1|}}}}}
{{:PRIM_COLOR|{{{1|}}}}}
Line 40: Line 40:
{{!}}}
{{!}}}
}}}}
}}}}
-->


}}{{{!}} class="sortable" width="100%" {{Prettytable|style=margin: 0px 0px 10px 1pt;}}
}}{{{!}} class="sortable" width="100%" {{Prettytable|style=margin: 0px 0px 10px 1pt;}}
Line 55: Line 56:
! class="sortable" width="30%" {{!}} Scope
! class="sortable" width="30%" {{!}} Scope
{{!}}-
{{!}}-
{{User:Strife_Onizuka/PRIM_NAME|{{#var:PPC-1}}}}
<!--{{User:Strife_Onizuka/PRIM_NAME|{{#var:PPC-1}}}}
{{User:Strife_Onizuka/PRIM_DESC|{{#var:PPC-1}}}}
{{User:Strife_Onizuka/PRIM_DESC|{{#var:PPC-1}}}}-->
{{User:Strife_Onizuka/PRIM_TYPE|{{#var:PPC-1}}}}
{{User:Strife_Onizuka/PRIM_TYPE|{{#var:PPC-1}}}}
{{PPC|{{{1|}}}|PRIM_MATERIAL|const={{#var:material_const}}|value=2|scope=prim|attr=material|[[integer]]&nbsp;{{HoverText|flag|PRIM_MATERIAL_* flag}}&nbsp;]|content={{PBR}}
<!--{{PPC|{{{1|}}}|PRIM_MATERIAL|const={{#var:material_const}}|value=2|scope=prim|attr=material|[[integer]]&nbsp;{{HoverText|flag|PRIM_MATERIAL_* flag}}&nbsp;]|content={{PBR}}
{{LSL Constants/PrimitiveParams/materials|{{{1|}}}|style=margin:0 0 0 0; padding:0;|table=*|sortable=*}} }}
{{LSL Constants/PrimitiveParams/materials|{{{1|}}}|style=margin:0 0 0 0; padding:0;|table=*|sortable=*}} }}
{{PPC|{{{1|}}}|PRIM_PHYSICS|const={{#var:physics_const}}|value=3|scope=object|qualifier=status|attr=physics|[[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]|content=}}
{{PPC|{{{1|}}}|PRIM_PHYSICS|const={{#var:physics_const}}|value=3|scope=object|qualifier=status|attr=physics|[[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]|content=}}
Line 104: Line 105:
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|topshear_x}}&nbsp;]
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|topshear_x}}&nbsp;]
{{!}}} }} }}
{{!}}} }} }}-->
{{!}}-
{{!}}-
{{!}}}{{#if:
{{!}}}{{#if:

Revision as of 23:43, 18 November 2010

V Flag Parameters Returned Scope
9 PRIM_TYPE PRIM_TYPE,
integer flag ] + flag_parameters shape - prim
Jive-icon-11x2.png

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

• integer flag PRIM_TYPE_* flag

• list flag_parameters a list consisting of the parameters for flag

The values needed for flag_parameters is dependent on flag, please refer to the individual PRIM_TYPE_* articles for additional information.

Caveats

All Issues ~ Search JIRA for related Bugs
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 ]
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.
hole_shape Flags Shape
PRIM_HOLE_DEFAULT 0x00 Default
PRIM_HOLE_SQUARE 0x20 Square
PRIM_HOLE_CIRCLE 0x10 Circle
PRIM_HOLE_TRIANGLE 0x30 Triangle
PRIM_TYPE top_size and client taper conversion
Range[1] Top
Tapered
No
Tapering
Bottom
Tapered
Client [-1, 1] 1.0 0.0 -1.0
PRIM_TYPE [0, 2] 0.0 1.0 2.0
LEGACY [0, 1] 0.0 1.0 NA
Client < 1.11 [0, 1] 0.0 1.0 NA
3 shape
V Request Format Parameters Returned Scope
9 PRIM_TYPE PRIM_TYPE ]
integer flag ] + flag_parameters shape - prim
Jive-icon-11x2.png

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

• integer flag PRIM_TYPE_* flag

• list flag_parameters a list consisting of the parameters for flag
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.
flag Constants Additional Return Values
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 ]
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.
hole_shape Flags Shape
PRIM_HOLE_DEFAULT 0x00 Default
PRIM_HOLE_SQUARE 0x20 Square
PRIM_HOLE_CIRCLE 0x10 Circle
PRIM_HOLE_TRIANGLE 0x30 Triangle
PRIM_TYPE top_size and client taper conversion
Range[1] Top
Tapered
No
Tapering
Bottom
Tapered
Client [-1, 1] 1.0 0.0 -1.0
PRIM_TYPE [0, 2] 0.0 1.0 2.0
LEGACY [0, 1] 0.0 1.0 NA
Client < 1.11 [0, 1] 0.0 1.0 NA
3 shape