Difference between revisions of "LlGetTexture"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 27: Line 27:
</lsl>
</lsl>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llSetTexture]]|}}
|also_functions={{LSL DefineRow||{{LSLGC|Primitive Params}}|[[PRIM_TEXTURE]]}}
{{LSL DefineRow||[[llSetTexture]]|}}
{{LSL DefineRow||[[llSetLinkTexture]]|Sets link's texture}}
{{LSL DefineRow||[[llSetLinkTexture]]|Sets link's texture}}
{{LSL DefineRow||[[llGetNumberOfSides]]|Gets the number of faces on the prim}}
{{LSL DefineRow||[[llGetNumberOfSides]]|Gets the number of faces on the prim}}

Revision as of 17:32, 14 October 2010

Summary

Function: string llGetTexture( integer face );

Returns a string that is the texture on face

• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides. 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

All Issues ~ Search JIRA for related Bugs

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

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

Deep Notes

History

Search JIRA for related Issues

Signature

function string llGetTexture( integer face );