Skip to content

PRIM_SLICE

constant
Constant
integer PRIM_SLICE = 35;
Set with llSetLinkPrimitiveParamsFast
PRIM_SLICE, vector slice
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_SLICE → vector slice

Prim parameter [PRIM_SLICE, vector slice] to get or set the prim's slice values (a shape attribute equivalent to advanced cut).

Other PrimParam values (42)
Other PrimParamGet values (40)

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

llSetLinkPrimitiveParamsFast(LINK_THIS, [ 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.

llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_SLICE ]);

Returns the same values, in the same order.

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

Example 1
//updated findings show the difference can be as small as 0.02 not 0.05 (Tomos.Halsey)
default
{
state_entry()
{
llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SLICE,<0.0,0.02,0.0>]);
}
}
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.