LSL Wiki Mirror 10-5-2006: llGetTexture

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
string llGetTexture(integer side)

Returns the texture of side. If this texture is in the inventory, it returns the name of this texture in the inventory. If it is not in the inventory, it returns the key of this texture.

Note: If side == ALL_SIDES, side 0 is used instead.

Compare to llSetTexture, llGetPrimitiveParams.

As of 1.6.5, llGetTexture and llGetPrimitiveParams now return NULL_KEY when attempting to get the texture on an object without full asset permissions.

Q: How do I determine which side of an object this applies to?
A: See side.

Q: So if I can't get the key of a texture because my object is no-mod, is there any way to compare the texture against a given key?
A: No, not yet. There's no reason the Lindens couldn't do something like integer llCompareTexture(integer side, key src) which would compare the key of side to that supplied as src, returning either TRUE or FALSE, but this isn't something that exists. Unfortunately, there's currently no way around it. Design your scripts accordingly.


Functions | Texture
There is no comment on this page. [Display comments/form]