[sldev] [HELP] getting UUID for uploaded texture in viewer

Stan Vernier sv193702 at ohio.edu
Thu Nov 15 17:38:44 PST 2007


I'm trying to modify the viewer to allow for someone to right click on
an object, use the pie menu to open a floater window and input a URL to
an image and have the image to become the texture on the object
automatically.  The floater works, getting the image and uploading it to
SL works, I'm pretty sure I know the function to change the texture on
an object but I'm having trouble with getting the LLUUID for the
texture.  Right now I'm getting a UUID, but it doesn't correspond to the
the result of right clicking on the image in the inventory and choosing
copy UUID.

I know that there is one being created in the function
upload_new_resource in llviewermenufile.cpp but the upload_complete
function in llassetuploadresponders.cpp is using two different UUID's in
its llinfos message.  Trying to find where the other two UUIDs are being
generated has got me tracing through about 4-5 other files with no
luck.  Even if I did find them, getting a hold of the final UUID in my
function would be a pain.  Is there any way to get the UUID from a
completely separate floater?  I checked into if I'd be able to search
the inventory for the name of the texture, but only briefly. Anyone have
some ideas to try?



More information about the SLDev mailing list