Skip to content

PRIM_RENDER_MATERIAL

constant
Constant
integer PRIM_RENDER_MATERIAL = 49;
Set with llSetLinkPrimitiveParamsFast
PRIM_RENDER_MATERIAL, integer face, string render_material
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_RENDER_MATERIAL, integer face → string render_material
  1. integer face// Values: Faces
  2. string render_material// Material: llGetRenderMaterial

Prim parameter [PRIM_RENDER_MATERIAL, integer face, string material] to get or set face material settings. Note: Setting this clears most PRIM_GLTF_* properties on the face, except for repeats, offsets, and rotation_in_radians.

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

Used to get or set the material settings of a prim’s face.

PRIM_RENDER_MATERIAL, integer face, string render_material

Used with llSetPrimitiveParams & llSetLinkPrimitiveParams.

llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_RENDER_MATERIAL, ALL_SIDES, my_render_material ]);
llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_RENDER_MATERIAL, ALL_SIDES, llGetInventoryName(INVENTORY_MATERIAL, 0) ]);
llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_RENDER_MATERIAL, 0, my_render_material ]);
llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_RENDER_MATERIAL, integer face ]);

Returns the same values, in the same order.

In the case of llGetPrimitiveParams is either the prim the script resides in, or the prim specified by the immediately prior PRIM_LINK_TARGET call. However in the case of llGetLinkPrimitiveParams, it is either the value of the link parameter, or the prim specified by the immediately prior PRIM_LINK_TARGET call.

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.