Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discovery of UUID / UIDs

a lost user
Join date: ?
Posts: ?
09-04-2005 00:29
Hello there!,

I'm fairly new to SL and LSL, however I am a professional programmer and know my shit fairly well.

I have seen "UUIDs" and "UIDs" passed around on these forums quite frequently for textures, anims etc.

My question is firstly.

What is the difference between a UUID and UID and secondly, which sorts of objects have UUIDs/UIDs that can be used in this manner?

Is it limited to textures/anims/sounds or does it extend to every object in game, ie prims, linked groups of prims, avatars etc.

And... how do I go about discovering the UUID of a texture/anim/sound I upload or a prim I create etc?

Thanks in advance for helping out a n00b :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-04-2005 00:40
A UUID is just the string form of a 16 byte integer.
"00000000-0000-0000-0000-000000000000"

They can be used with textures, sounds & animations (but only to stop animations, because someone who will go unnamed (me) made an animation scanner during preview).

They can also be used with llGodLikeRezObject, but that function is not available to the users.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
a lost user
Join date: ?
Posts: ?
09-04-2005 00:43
From: Strife Onizuka
A UUID is just the string form of a 16 byte integer.
"00000000-0000-0000-0000-000000000000"



Thanks, can you tell me how to retreive the UUID for a texture I posses?

Edit: NVM I see it ( llGetTexture )
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
09-04-2005 00:57
Right click and Copy Asset UUID on your texture in your inventory. Paste it on your script. :p
_____________________
:) Seagel Neville :)
a lost user
Join date: ?
Posts: ?
09-04-2005 01:22
From: Seagel Neville
Right click and Copy Asset UUID on your texture in your inventory. Paste it on your script. :p



Lol :(

Can't beleive I just wrote a script to do exactly that :P
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
09-04-2005 09:16
It's also why there is no ll funtion to set the avatar's texture.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-04-2005 15:15
From: Allele Semple

What is the difference between a UUID and UID and secondly, which sorts of objects have UUIDs/UIDs that can be used in this manner?


UID is generally a mispelling :P
Davan Camus
Registered User
Join date: 13 Sep 2005
Posts: 67
UUID borrowed and used?
09-15-2005 09:25
Ok, I'm new to LSL, but yeah I program by day so ya ya.

LSL is a funny little language, but works ok for me so far. :)

Can I use UUID's for any texture in all of SL? If my friend IM's me the UUID for a texture, can I just use it?

I saw some example scripts that seemed to suggest that (they had constant UUID's that I guess the script author has in their inventory?).

Thanks!
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-15-2005 09:46
If you know the UUID of a sound or texture you can use it in a script (without needing to actualy own the asset).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-15-2005 16:04
UUID's are the "true name" of files---they're what the server uses to reference them. Thus, they are dangerous if misused...