llGetTexture
function
- Returns
string- Energy
- 10
If the texture is in the prim’s inventory, the return value is the inventory name, otherwise the returned value is the texture UUID.
Returns a string that is the Blinn-Phong diffuse texture on face
string result = llGetTexture(0);Caveats
Section titled “Caveats”is returned when the owner does not have full permissions to the object and the texture is not in the prim’s inventory.
- The white texture from the texture picker is “5748decc-f629-461c-9a36-a35a221fe21f”
- The default texture (plywood) is “89556747-24cb-43ed-920b-47caed15465f”
Examples
Section titled “Examples”Example 1
//Tells (on chat) the texture keys / texture names on 6 sidesdefault{ state_entry() { integer i = 0; integer max = llGetNumberOfSides(); while(i < max) { llSay(0,"Side " + (string)i + " texture is: " + (string)llGetTexture(i)); ++i; } }}History
Section titled “History”- On 5/15/2005 (give or take a day)
llGetTexturewas changed to check the host object’s permissions and if inadequate return
.
- http://forums-archive.secondlife.com/54/a1/47066/1.html
- http://forums-archive.secondlife.com/54/09/33388/1.html
See also
Section titled “See also”Functions
Section titled “Functions”- PrimitiveParams —
PRIM_TEXTURE llSetTexturellSetLinkTexture— Sets link’s texturellGetNumberOfSides— Gets the number of faces on the prim
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.