Prim Appearance
Change colors, textures, materials, and visual properties.
Feature: Textures & Materials
What do you want to do?
llSetLinkPrimitiveParamsFast(integer link, list rules)Sets primitive parameters for the linked prim link according to rules with no built-in script sleep delay.llSetRenderMaterial(string material, integer face)Applies material (UUID or inventory name) to face of the prim. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.llSetLinkGLTFOverrides(integer link, integer face, list params)Sets or removes individual GLTF override parameters specified by params on face of the linked prim link.Reference
35 topic entries
float llGetAlpha(integer face)functionReturns a float representing the Blinn-Phong alpha (transparency) of face. If face is
ALL_SIDES, returns the mean average of all faces.vector llGetColor(integer face)functionReturns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face is
ALL_SIDES, returns the mean average of all faces.integer llGetLinkNumberOfSides(integer link)functionReturns an integer representing the number of sides (faces) of the linked prim specified by link.
list llGetLinkPrimitiveParams(integer link, list params)functionReturns a list of primitive parameters requested in params for the linked prim specified by link (equivalent to
llGetPrimitiveParams).float llGetMaxScaleFactor()functionReturns a float representing the maximum scale factor that can be applied to the object via
llScaleByFactorwithout violating size or linkability limits.float llGetMinScaleFactor()functionReturns a float representing the minimum scale factor that can be applied to the object via
llScaleByFactorwithout violating size limits.integer llGetNumberOfSides()functionReturns an integer representing the total number of sides (faces) of the prim containing the script.
list llGetPrimitiveParams(list params)functionReturns a list of primitive attribute values matching the requested params list.
string llGetRenderMaterial(integer face)functionReturns a string representing the render material on face (returns the inventory name if it is in the prim's inventory, or its key UUID otherwise).
string llGetTexture(integer face)functionReturns a string representing the Blinn-Phong diffuse texture on face (returns the inventory name if it is a texture in the prim's inventory, or its key UUID otherwise).
vector llGetTextureOffset(integer face)functionReturns a vector containing the texture offsets of face in the X (horizontal U) and Y (vertical V) components (Z is unused).
float llGetTextureRot(integer face)functionReturns a float representing the texture rotation angle (in radians) on face.
vector llGetTextureScale(integer face)functionReturns a vector containing the texture scales of face in the X and Y components (Z is unused).
integer llIsLinkGLTFMaterial(integer link, integer face)functionChecks the specified face on the linked prim link. Returns
TRUEif the face material is a PBR render material, orFALSEif it uses Blinn-Phong diffuse textures.vector llLinear2sRGB(vector color)functionReturns a sRGB colorspace vector converted from the linear RGB colorspace argument.
llOffsetTexture(float u, float v, integer face)functionSets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face is
ALL_SIDES, offsets all faces.llRotateTexture(float angle, integer face)functionSets the texture rotation of face to the specified angle (in radians). If face is
ALL_SIDES, rotates the texture on all faces.integer llScaleByFactor(float scaling_factor)functionAttempts to uniformly resize the entire object by scaling_factor, maintaining size-position ratios of the prims. Fails if the linkset is physical, a pathfinding character, in keyframed motion, would exceed prim scale/linkability limits, or would overflow parcel capacity.
llScaleTexture(float u, float v, integer face)functionSets the diffuse texture horizontal u and vertical v scales (repeats) on the specified face of the prim. Setting face to
ALL_SIDESupdates all sides. Negative scale values flip the texture.llSetAlpha(float alpha, integer face)functionSets the diffuse texture alpha (opacity) of face. If face is
ALL_SIDES, applies to all faces. Values are clamped between 0.1 and 1.0 (where 1.0 is fully opaque).llSetColor(vector color, integer face)functionSets the Blinn-Phong diffuse RGB color of face. If face is
ALL_SIDES, applies the color to all faces.llSetLinkAlpha(integer link, float alpha, integer face)functionSets the Blinn-Phong alpha (transparency) of face on the linked prim link.
llSetLinkColor(integer link, vector color, integer face)functionSets the Blinn-Phong diffuse RGB color of face on the linked prim link.
llSetLinkGLTFOverrides(integer link, integer face, list params)functionSets or removes individual GLTF override parameters specified by params on face of the linked prim link.
llSetLinkPrimitiveParamsFast(integer link, list rules)functionSets primitive parameters for the linked prim link according to rules with no built-in script sleep delay.
llSetLinkRenderMaterial(integer link, string material, integer face)functionApplies material (UUID or inventory name) to face of the linked prim link. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.
llSetLinkTexture(integer link, string texture, integer face)functionApplies texture (UUID or inventory name) to face of the linked prim link.
llSetLinkTextureAnim(integer link, integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)functionAnimates the texture on face of the linked prim link by setting the scale and offset according to mode. Parameters sizex/sizey define frames, start defines the start frame/angle, length defines duration, and rate defines playback speed.
llSetRenderMaterial(string material, integer face)functionApplies material (UUID or inventory name) to face of the prim. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.
llSetScale(vector size)functionSets the physical scale (dimensions) of the prim containing the script to size.
llSetText(string text, vector color, float alpha)functionDisplays floating text above the prim with the specified color vector and transparency alpha.
llSetTexture(string texture, integer face)functionApplies the Blinn-Phong diffuse texture to face of the prim.
llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)functionAnimates the texture on face of the prim by setting its scale and offset. mode defines options, sizex/sizey define frames, start defines the start frame/angle, length defines duration, and rate defines playback speed.
vector llsRGB2Linear(vector color)functionReturns a linear RGB colorspace vector converted from the sRGB colorspace argument.
changed(integer changes)eventTriggered when various properties of the object change. The parameter changes is a bitfield of CHANGED_* flags.
No matching entries. Try a different term or filter.