Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

UUID question

Chocolate Pye
Registered User
Join date: 17 Apr 2007
Posts: 5
12-10-2007 11:52
I really dont know what a uuid (i cant even pronounce it) is but....i have the uuid of a texture and was wondering if there was a way to display the texture that coresponds to that uuid...even if i dont have the original texture?

Can you tell im a little bit blonde? *giggles*

thanky! *smooches*
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-10-2007 12:05
simply put, a uuid is like a web address to the thing it refers to (in this case a texture), it tells the system where to find something on the asset server, to use. more in depth and accurate information here http://en.wikipedia.org/wiki/UUID

to apply it to an object you'll need to use a script, the following will put the image on all sides of the prim it's in

CODE

default{
state_entry(){
//-- the next line sets the texture on all sides
llSetTexture( "insert uuid or name of texture in prim contents here", ALL_SIDES );
//-- the next line auto-deletes the script when you run it
llRemoveInventory( llGetScriptName() );
}
}
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Chocolate Pye
Registered User
Join date: 17 Apr 2007
Posts: 5
12-10-2007 12:47
Ty for the quick answer but I'm not sure that I understand...

1 i make a box

2 i make a new script in the contents tab

3 paste the script and save it

4 paste the uuid

5 box is still blank...

did i do it right



this is the uuid

5605ee18-d5d0-8288-e321-27b2038a4fa3
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
12-10-2007 12:47
default
{
state_entry()
{
llSetTexture("5605ee18-d5d0-8288-e321-27b2038a4fa3",ALL_SIDES);
}
}


If you still need help, pm me on the forums.

Edit:Delete the script after you see the textures change.
_____________________
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-10-2007 14:56
in my example, the script should be made in inventory then modified and dropped on the object, because it deletes itself as soon as it runs (this is so you don't have a script running in the object after it's done all it needs to do, this reduces lag... the other option is to remove that line as in bobbys example, but then delete the scipt manually after it's done it's work)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
12-10-2007 15:05
From: Void Singer
in my example, the script should be made in inventory then modified and dropped on the object, because it deletes itself as soon as it runs (this is so you don't have a script running in the object after it's done all it needs to do, this reduces lag... the other option is to remove that line as in bobbys example, but then delete the scipt manually after it's done it's work)


Okay...and are we too lazy to delete it manuelly?(I excluded the auto delete since more lines = greater chance for error when she copies.)
_____________________
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-10-2007 15:42
From: Bobbyb30 Zohari
Okay...and are we too lazy to delete it manuelly?(I excluded the auto delete since more lines = greater chance for error when she copies.)

no, we're (royal we?) automating a repetitve function, that promotes sim health, and reduces lag. I like cut and paste myself.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
12-10-2007 17:53
Bobby, as Void said, use cut & paste, and you'll never have to worry about mistyping a script (assuming it was typed correctly to begin with). Simply highlight the text for the script in question, and press ctrl-c. This is the keyboard shortcut for copy. Then create your new script, delete the default text in it, and press ctrl-v (shortcut for paste) to put your copied text into it. Save the script, and you're all done.

A lot of people don't know this, but in just about all Windows programs (and in Windows itself), there's a series of common shortcuts across the bottom of the keyboard:

ctrl-z = undo
ctrl-x = cut
ctrl-c = copy
ctrl-v = paste

And a couple that are not on the bottom:

ctrl-y = redo
ctrl-f = find

These will work in SL, in all browsers (at least all the ones I've used), and in all MS applications. Note, in Adobe applications, ctrl-y is replaced with ctrl-shift-z.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.