|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-20-2008 23:01
Say I have an object built from 5 links prims. Is there a way to store copy/transfer textures in one of the child prims and have a script in the parent prim to extract and view them? The object itself would have only a copy permission.
When I say view, I mean use them as textures on the parent and one or more of the children.
(hope that makes sense) - I'm building a tabloid newspaper type thing.
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
10-21-2008 00:49
If they are full-perm you can obtain and pass around UUIDs through link messages.
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-21-2008 03:25
Thanks, any chance of a small example anyone?
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
10-21-2008 05:09
No examples, but here's some more detail...
The simplest thing to do is store your textures in the root and use llSetTexture, llSetLinkTexture, llSetPrimitiveParams, llSetLinkPrimitiveParams to set textures by name for the root and children. If for some reason you must store textures in child prims but want to use them in the root you'll have to use llGetInventoryKey to get the UUID and llMessageLinked to send it to the root, where you can use llSetTexture and llSetPrimitiveParams to set textures by UUID. Look up the wiki pages for all these functions for examples on their use.
Your textures must be full-perm to get their UUID using llGetInventoryKey.
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-21-2008 15:27
Thanks Anya
|