llGetTexture

From Second Life Wiki
Revision as of 22:00, 21 June 2014 by Strife Onizuka (talk | contribs) (Undo revision 1191468 by Clarke Kondor (Talk) This is a bug, please report on JIRA)
Jump to navigation Jump to search

Summary

Function: string llGetTexture( integer face );
0.0 Forced Delay
10.0 Energy

Returns a string that is the texture on face

• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function returns the value for face zero. If the texture is in the prim's inventory, the return value is the inventory name, otherwise the returned value is the texture UUID.

Caveats

Examples

<lsl> //Tells (on chat) the texture keys / texture names on 6 sides default {

   state_entry()
   {
       integer i = 0;
       integer max = llGetNumberOfSides();
       while(i < max)
       {
           llSay(0,"Side " + (string)i + " texture is: " + (string)llGetTexture(i));
           ++i;
       }
   }

}

</lsl>

See Also

Functions

•  PrimitiveParams PRIM_TEXTURE
•  llSetTexture
•  llSetLinkTexture Sets link's texture
•  llGetNumberOfSides Gets the number of faces on the prim

Deep Notes

History

Signature

function string llGetTexture( integer face );