llSetLinkRenderMaterial
function
Function syntax
llSetLinkRenderMaterial(integer link,// Link number (1 for root, >1 for children) or a LINK_* flag. Values: Linksstring material,// Name of a material in the prim's inventory, or a UUID.integer face// Face number orALL_SIDES. Values: Faces
);- Delay
- 0.2 s
- Energy
- 10
If a prim exists in the link set at link, set material on face of that prim. This function will clear most PRIM_GLTF_* properties on the face, with the exceptions of repeats, offsets, and rotation_in_radians
llSetLinkRenderMaterial(0, "", 0);Caveats
Section titled “Caveats”- If material is provided as
NULL_KEY, the glTF Material is removed from face, reverting back to any underlying Blinn-Phong materials.
Examples
Section titled “Examples”Cover a link set in the material my_material
default{ touch_start(integer detected) { llSetLinkRenderMaterial(LINK_SET, my_material, ALL_SIDES); }}See also
Section titled “See also”Functions
Section titled “Functions”Articles
Section titled “Articles”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.