Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Set the texture without using keyid

Silvia Pollock
Registered User
Join date: 8 Feb 2007
Posts: 10
05-28-2007 08:02
Hi

Let's assume I have two texture in the inventory of my avatar, their name are "one" and "two".

I have a box in which I want to load my textures automatically in this way:
when I say one, texture "one" is displayed in the box; when I say two, texture "two" is displayed in the box.

One limit is that I cannot use the key id of the texture (this is important), but only the name.
Another limit is that textures must stay in the inventory of my avatar.

Can anyone help me, please?

thanks
Cindy Crabgrass
Crashed to Desktop
Join date: 9 Sep 2006
Posts: 158
05-28-2007 08:11
as far as i know, you cant use textures in your avatars inventory 'by name',
this works only if the texture is in the prim's inventory.
why not use the key ?
someone correct me if i'm wrong.
_____________________
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
05-28-2007 14:13
Cindy is right. But maybe there's a workable "loop-hole" in your constraints. If you only care that keys don't have to be uttered in chat, then the script can just listen for "one" and llSetTexture() to a corresponding UUID.

If the reason you don't want to use the UUID is that you hope to slyly change the mapping of the "one" name to a different texture in your Inventory-- :cool: -- then the script would have to be slightly trickier. It would have to do something like communicate with a server object via llEmail() (assuming the objects will be in different sims) to get new mappings of words-to-UUIDs.
Silvia Pollock
Registered User
Join date: 8 Feb 2007
Posts: 10
05-28-2007 23:22
Sorry, guys,

I've posted some of my thoughts, but maybe this describe better what I have to do:

/8/14/187115/1.html

Thanks