Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Uuid?

Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 13:08
can prims and objects have UUID's? al i get is "00000000-0000-0000-0000-000000000000".

:(
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-08-2008 13:10
They do. the string of 0's is generally returned when you don't have perms to the object (Can't remember if it's full perms or what that you need)
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 13:12
From: Keira Wells
They do. the string of 0's is generally returned when you don't have perms to the object (Can't remember if it's full perms or what that you need)

but there thing that i made my self.... maybe i'll test some things...
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
04-08-2008 13:23
Objects don't get UUIDs until they are rezzed. The UUID changes every time it is rezzed. If you are trying to get the UUID of an object in your inventory, you can't. :)
_____________________
Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 13:24
From: Darien Caldwell
Objects don't get UUIDs until they are rezzed. The UUID changes every time it is rezzed. If you are trying to get the UUID of an object in your inventory, you can't. :)

well how do i get it?
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-08-2008 13:32
From: Mushroom Wobbit
well how do i get it?

You. Can't.

It doesn't have a UUID until rezzed. If it's rezzed, it has a UUID. If another one of that is rezzed, it has a different UUID.

Object UUID's aren't static like textures, and unless I'm mistaken, can't be used like them either.

This is all based on info gathered from these forums over the last year or so. If it's wrong, I apologize.
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 13:33
From: Keira Wells
You. Can't.

It doesn't have a UUID until rezzed. If it's rezzed, it has a UUID. If another one of that is rezzed, it has a different UUID.

Object UUID's aren't static like textures, and unless I'm mistaken, can't be used like them either.

This is all based on info gathered from these forums over the last year or so. If it's wrong, I apologize.

so it has a uuid if i rez it, but i cant get it?
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
04-08-2008 13:36
From: Mushroom Wobbit
so it has a uuid if i rez it, but i cant get it?

You should be able to get the UUID of a specific instance of an object, but I don't believe it's possible to really use it as you can with notecards and textures.

(Notecards get new UUIDs every time they are saved)
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 13:39
From: Keira Wells
You should be able to get the UUID of a specific instance of an object, but I don't believe it's possible to really use it as you can with notecards and textures.

(Notecards get new UUIDs every time they are saved)

but how do i get it then?
(i'm teribly new at this) \(9_6)/
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
04-08-2008 13:59
Mushroom, check out http://wiki.secondlife.com/wiki/LlGetKey .

edit: that call gets you the instance key for the prim the script is in. This value changes every time you rez a new copy of the object, though. The first U in UUID stands for "Unique" and it wouldn't really be very unique if more than one thing had the same UUID.

There is some other UUID that is a references to what you can sorta think of as the abstract object on the asset server - the "when you need to rez this object in-world, here's the UUID to ask the asset server for" UUID - but that's not really useuful. There's nothing you can do with that value on objects and there's no way to get it from scripts.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Mushroom Wobbit
Registered User
Join date: 13 Mar 2008
Posts: 20
04-08-2008 14:11
From: Meade Paravane
Mushroom, check out http://wiki.secondlife.com/wiki/LlGetKey .

edit: that call gets you the instance key for the prim the script is in. This value changes every time you rez a new copy of the object, though. The first U in UUID stands for "Unique" and it wouldn't really be very unique if more than one thing had the same UUID.

There is some other UUID that is a references to what you can sorta think of as the abstract object on the asset server - the "when you need to rez this object in-world, here's the UUID to ask the asset server for" UUID - but that's not really useuful. There's nothing you can do with that value on objects and there's no way to get it from scripts.


Thank you so much! :)
and thank you to every one else who responded :D
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
04-09-2008 21:56
From: Darien Caldwell
Objects don't get UUIDs until they are rezzed. The UUID changes every time it is rezzed. If you are trying to get the UUID of an object in your inventory, you can't. :)


I beg to differ with you on that point. All assets in SL, including objects in your inventory, have a UUID key. You just cannot right click and copy the UUID key of an object like you can a sound or texture. Otherwise, how would the system look up the object on the asset server? Now, the instance key, which is created for a rezzed object is different from the inventory key, and it's different from rez to rez, but, there IS an inventory key for an object in your inventory, you just can't get at it.
Ravenhurst Xeno
Consiracy with no purpose
Join date: 20 Jan 2007
Posts: 147
04-10-2008 05:10
There seems to be some confusion about objects and their uuid's. All every prim and object has a uuid. If it exists in the asset server it has to have a uuid. When an object is rezzed from inventory it gets a new uuid only if a new instance is created. If the object is no copy, no new instance is created and the object has the same uuid that it had when it was taken into inventory

A script can get the uuid of the prim it is in with llGetKey. It can get the uuid of items in its prim's inventory with llGetInventoryKey It can get the uuid's of items around it with a llSensor scan There is no way for a script to get the uuid of an item in an avatar's or external object's inventory.

Sorry, i'm in a pedantic mood this morning.
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
04-10-2008 07:30
From: Ravenhurst Xeno
When an object is rezzed from inventory it gets a new uuid only if a new instance is created. If the object is no copy, no new instance is created and the object has the same uuid that it had when it was taken into inventory


Yeah, this isn't true, I just tested it. If it WERE true, I'd be able to have my alt give me a mod, no copy, and transfer box, then I could use it as an update server and never have to worry about it changing its key when I pick it up to move it. Oh well, it would have been sweet.
_____________________
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
04-10-2008 07:35
From: Ravenhurst Xeno
If the object is no copy, no new instance is created and the object has the same uuid that it had when it was taken into inventory
This is incorrect. A new instance, and hence a new instance key, is created each time an object is rezzed, regardless of copy permission status.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
04-10-2008 17:39
From: Deanna Trollop
This is incorrect. A new instance, and hence a new instance key, is created each time an object is rezzed, regardless of copy permission status.



... and it's never the inventory key of the object, ever.