Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

question about "key VIDEO_DEFAULT"

Powerspot Destiny
Registered User
Join date: 2 Nov 2007
Posts: 71
12-30-2008 17:16
in the script code of tv/video menu's is this code........

key VIDEO_DEFAULT = "a2b04104-b16b-c537-6f1f-976a6b58ad43"; // choose default texture texture to replace with the movie

can anyone tell me what "a2b04104-b16b-c537-6f1f-976a6b58ad43" is pointing to to set the texture?.....all my scripts have different letters which give different textures..........i would like to replace this part with something different......i'm using open sourse full perm script so should work.


thank you
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
12-30-2008 17:27
Every texture (and every other asset, avatar, parcel, group, anything you can identify in SL really) has a unique number attached, called a UUID or key depending on who's talking about it at them moment. For textures where you have full permissions (try one in the library folder), you can right-click in inventory and use "Copy UUID" to get the same sort of number you can paste into a script.

People use these so that they don't have to stuff textures into objects' inventories, and with no modify scripts it can help discourage "borrowing" of the texture on other objects. It also just helps to reduce clutter a little.

If you want to see what a particular texture UUID shows, you can rez a cube and toss a little script into it as so:

CODE

default {
state_entry() {
llSetTexture("a2b04104-b16b-c537-6f1f-976a6b58ad43", ALL_SIDES);
}
}
Powerspot Destiny
Registered User
Join date: 2 Nov 2007
Posts: 71
Thank You Viktoria
12-30-2008 17:32
That worked great........