Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How can I get the name of a texture from UUID

Blaise Timtam
Registered User
Join date: 20 Apr 2006
Posts: 15
09-09-2006 08:56
In a "changed" driver, I get the UUID of a texture I just dragges on the object's face.
How can I get the name of that texture?

- changed passes no data to use llDetectedName
- llKey2Name does not work ( I suppose that's because my texture is not a rezed object in the sim)

Does someone know a way?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-09-2006 11:46
The same texture can have a different name in different places, so there IS no way. However, you could go through the object's inventory and search for any textures with the same UUID (note: there could be multiple). That would involve 'llGetInventoryNumber()', 'llGetInventoryKey()' and 'llGetInventoryName()' with the type 'INVENTORY_TEXTURE' and a decently written loop. You may want to cache a mapping so it only has to be done once (or once each time the inventory is changed at any rate).