Prim Appearance
Change colors, textures, materials, and visual properties.
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
Badges
Kind
float llGetAlpha(integer face)Returns a float representing the Blinn-Phong alpha (transparency) of face. If face isALL_SIDES, returns the mean average of all faces.functionvector llGetColor(integer face)Returns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face isALL_SIDES, returns the mean average of all faces.functioninteger llGetLinkNumberOfSides(integer link)Returns an integer representing the number of sides (faces) of the linked prim specified by link.functionlist llGetLinkPrimitiveParams(integer link, list params)Returns a list of primitive parameters requested in params for the linked prim specified by link (equivalent tollGetPrimitiveParams).functionfloat llGetMaxScaleFactor()Returns a float representing the maximum scale factor that can be applied to the object viallScaleByFactorwithout violating size or linkability limits.functionfloat llGetMinScaleFactor()Returns a float representing the minimum scale factor that can be applied to the object viallScaleByFactorwithout violating size limits.functioninteger llGetNumberOfSides()Returns an integer representing the total number of sides (faces) of the prim containing the script.functionlist llGetPrimitiveParams(list params)Returns a list of primitive attribute values matching the requested params list.functionS (Sleeps 0.2s)string llGetRenderMaterial(integer face)Returns 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).functionstring llGetTexture(integer face)Returns 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).functionvector llGetTextureOffset(integer face)Returns a vector containing the texture offsets of face in the X (horizontal U) and Y (vertical V) components (Z is unused).functionfloat llGetTextureRot(integer face)Returns a float representing the texture rotation angle (in radians) on face.functionvector llGetTextureScale(integer face)Returns a vector containing the texture scales of face in the X and Y components (Z is unused).functioninteger llIsLinkGLTFMaterial(integer link, integer face)Checks the specified face on the linked prim link. ReturnsTRUEif the face material is a PBR render material, orFALSEif it uses Blinn-Phong diffuse textures.functionvector llLinear2sRGB(vector color)Returns a sRGB colorspace vector converted from the linear RGB colorspace argument.functionllOffsetTexture(float u, float v, integer face)Sets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face isALL_SIDES, offsets all faces.functionS (Sleeps 0.2s)llRotateTexture(float angle, integer face)Sets the texture rotation of face to the specified angle (in radians). If face isALL_SIDES, rotates the texture on all faces.functionS (Sleeps 0.2s)integer llScaleByFactor(float scaling_factor)Attempts 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.functionllScaleTexture(float u, float v, integer face)Sets the diffuse texture horizontal u and vertical v scales (repeats) on the specified face of the prim. Setting face toALL_SIDESupdates all sides. Negative scale values flip the texture.functionS (Sleeps 0.2s)llSetAlpha(float alpha, integer face)Sets the diffuse texture alpha (opacity) of face. If face isALL_SIDES, applies to all faces. Values are clamped between 0.1 and 1.0 (where 1.0 is fully opaque).functionllSetColor(vector color, integer face)Sets the Blinn-Phong diffuse RGB color of face. If face isALL_SIDES, applies the color to all faces.functionllSetLinkAlpha(integer link, float alpha, integer face)Sets the Blinn-Phong alpha (transparency) of face on the linked prim link.functionllSetLinkColor(integer link, vector color, integer face)Sets the Blinn-Phong diffuse RGB color of face on the linked prim link.functionllSetLinkGLTFOverrides(integer link, integer face, list params)Sets or removes individual GLTF override parameters specified by params on face of the linked prim link.functionllSetLinkPrimitiveParamsFast(integer link, list rules)Sets primitive parameters for the linked prim link according to rules with no built-in script sleep delay.functionllSetLinkRenderMaterial(integer link, string material, integer face)Applies 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.functionS (Sleeps 0.2s)llSetLinkTexture(integer link, string texture, integer face)Applies texture (UUID or inventory name) to face of the linked prim link.functionS (Sleeps 0.2s)llSetLinkTextureAnim(integer link, integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)Animates 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.functionllSetRenderMaterial(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.functionS (Sleeps 0.2s)llSetScale(vector size)Sets the physical scale (dimensions) of the prim containing the script to size.functionllSetText(string text, vector color, float alpha)Displays floating text above the prim with the specified color vector and transparency alpha.functionllSetTexture(string texture, integer face)Applies the Blinn-Phong diffuse texture to face of the prim.functionS (Sleeps 0.2s)llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)Animates 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.functionvector llsRGB2Linear(vector color)Returns a linear RGB colorspace vector converted from the sRGB colorspace argument.functionchanged(integer changes)Triggered when various properties of the object change. The parameter changes is a bitfield of CHANGED_* flags.event
No matching entries. Try a different term or filter.