How to get the Asset UUID

Creating scripts
Post Reply
User avatar
Sierra Jakob
Posts: 266
Joined: Tue May 14, 2013 9:22 pm
Has thanked: 185 times
Been thanked: 200 times

How to get the Asset UUID

Post by Sierra Jakob » Fri Jun 06, 2014 11:11 pm

How do I get an object's UUID?

In my inventory, I am able to right click on a sound and select "Copy Asset UUID".
However, when I right click an object in my inventory, the "Copy Asset UUID" is greyed out--disabled. That's even for an object I made myself completely and is full perm.

(Just in case you are wondering why I am needing this.....I'm adjusting a particle script and need to get the particles to go toward a target object--I need the UUID to do that.)
Garden Castle - Market & Demo Info: http://www.kitely.com/market/product/42 ... ob-Designs
Image
User avatar
Oren Hurvitz
Posts: 304
Joined: Sun Dec 23, 2012 8:42 am
Has thanked: 9 times
Been thanked: 353 times
Contact:

Re: How to get the Asset UUID

Post by Oren Hurvitz » Sat Jun 07, 2014 6:55 am

When objects are rezzed they don't have an Asset UUID; they have an Object UUID. Those UUID's are created randomly each time the object is rezzed. So if you create a script with a hard-coded Object UUID then it would only work with the specific rezzed object that you're looking at, but it won't work if the script is reused with a different copy of the object.
User avatar
Handy Low
Posts: 231
Joined: Fri Nov 08, 2013 3:38 pm
Location: Yorkshire, England
Has thanked: 207 times
Been thanked: 140 times
Contact:

Re: How to get the Asset UUID

Post by Handy Low » Sat Jun 07, 2014 1:10 pm

If you want to find the UUID of an object in-world using a script, you could use the llSensor() command, together with llDetectedKey(), to find the UUID of an object with a certain name (for example).
Handy Low
User avatar
Sierra Jakob
Posts: 266
Joined: Tue May 14, 2013 9:22 pm
Has thanked: 185 times
Been thanked: 200 times

Re: How to get the Asset UUID

Post by Sierra Jakob » Mon Jun 09, 2014 3:32 pm

Thank you so much, Oren and Handy. :)
Garden Castle - Market & Demo Info: http://www.kitely.com/market/product/42 ... ob-Designs
Image
Post Reply