From Second Life Wiki
(Redirected from
LSL llGetTexture)
GetTexture
llGetTexture
Description
Function: string llGetTexture( integer face );
Returns a string that is the texture on face
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
- The function silently fails if its face value indicates a face that does not exist
- If the host object does not have full permissions and the texture is not in the prim's inventory, the returned value is NULL_KEY.
- The white texture from the texture picker is "5748decc-f629-461c-9a36-a35a221fe21f"
- The default texture (plywood) is "89556747-24cb-43ed-920b-47caed15465f"
Deep Notes
History
- On 5/15/2005 (give or take a day) llGetTexture was changed to check the host object's permissions and if inadequate return NULL_KEY.