Difference between revisions of "PRIM SLICE"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 8: Line 8:


}}{{LSL Constant
}}{{LSL Constant
|inject-1={{LSL_Generic/pre-release}}
|name=PRIM_SLICE
|name=PRIM_SLICE
|type=integer
|type=integer
|value=35
|value=35
|desc=Used to get or set the prim's slice values (a shape attribute).
|desc=Used to get or set the prim's slice values (a shape attribute, equivalent to {{LSL Param|cut|advanced_cut}}).
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ {{#var:slice_const}}, |i_end= ]);
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ {{#var:slice_const}}, |i_end= ]);
|text={{LSL Constant/PrimParamText|set}}
|text={{LSL Constant/PrimParamText|set}}

Revision as of 23:03, 9 May 2012

Description

Constant: integer PRIM_SLICE = 35;

The integer constant PRIM_SLICE has the value 35

Used to get or set the prim's slice values (a shape attribute, equivalent to advanced_cut).

llSetPrimitiveParams

llSetPrimitiveParams([ PRIM_SLICE, vector slice ]);
• vector slice x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)

The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_SLICE ]);

Returns the list [ vector slice ]

• vector slice x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)

The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_SLICE = 35;