|
Dreamoutloud Lightfoot
Registered User
Join date: 22 Nov 2006
Posts: 12
|
03-16-2007 04:13
Hi
This is my first scripting attempt so bear with me.. although i am a java coder by profession....
Ive got a 3 prim object, the root prim has a script that sends messages to the child prims to update their textures. The textures have been dropped into the linked object and therefore only appear in the root prim. However, the child prims cannot reference the textures as they are held in the root prim.
Is there any way to copy the textures to the child prims when they are dropped in, or is there a way to get a reference the textures from the child prims?
Regards
Dreamoutloud.
|
|
Ged Larsen
thwarted by quaternions
Join date: 4 Dec 2006
Posts: 294
|
03-16-2007 04:18
From: Dreamoutloud Lightfoot Hi
This is my first scripting attempt so bear with me.. although i am a java coder by profession....
Ive got a 3 prim object, the root prim has a script that sends messages to the child prims to update their textures. The textures have been dropped into the linked object and therefore only appear in the root prim. However, the child prims cannot reference the textures as they are held in the root prim.
Is there any way to copy the textures to the child prims when they are dropped in, or is there a way to get a reference the textures from the child prims?
Regards
Dreamoutloud. If you have FULL permissions on the texture, you can obtain and use its UUID key, and send that to the child prims. Then you won't even need the textures to be in any object at all.
_____________________
- LoopRez, flexi prim skirt generating tool - LinkRez, a necklace chain generator
|
|
Dreamoutloud Lightfoot
Registered User
Join date: 22 Nov 2006
Posts: 12
|
03-16-2007 04:31
OK, im probably being stupid, but i cant find which call to make to get the UUID of the textures. Had a look in the wiki but cant find it. Help!!
thanks
Dream
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
03-16-2007 04:33
right-click the desired texture in your inventory, then select COPY UUID from the popup menu.
Then use that key to reference the texture instead of its name. Just paste it into the script where you reference the texture.
If you have full permissions on it, that will work perfectly fine.
|
|
Dreamoutloud Lightfoot
Registered User
Join date: 22 Nov 2006
Posts: 12
|
03-16-2007 04:37
ahh, but the textures will be dropped into the object by the owner of the object, so i need to be able to get the texture id from the name
Or is there an alternate to llgetinventoryName?
EDIT: worked it out.. use llgetinventorykey on the name.
Thanks
Dream
|