|
Ryann Slade
Registered User
Join date: 5 Jan 2008
Posts: 8
|
03-20-2008 07:05
I am trying to make a script that will use a menu to change textures of both parent & child prims an need to know how to get the inventory of the linked prim for the textures inside it to use on those linked prims........ But when I change the child prim textures I want them to change only an vise versa! Kinda like making say a armband with 20 gems & the band band would be in one menu & gems on another.
|
|
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
|
03-20-2008 15:14
I think its better use just the texture UUID and not the texture inside the object and use this: (from the wiki) // Call this function instead of llSetLinkTexture in your main script. setLinkTexture(list linkNums, string texture, integer face) { integer i; for (i = 0; i<llGetListLength(linkNums); i++) llSetLinkTexture(llList2Integer(linkNums, i), texture, face); }
and then this on every linked prim //Then you would call the function like this: list linkNums = [1, 3, 4]; setLinkTexture(linkNums, texture, face);
also you can check this functions: http://www.lslwiki.net/lslwiki/wakka.php?wakka=TextSearch&phrase=llSetLinkTexturehttp://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetLinkPrimitiveParams
|
|
Ryann Slade
Registered User
Join date: 5 Jan 2008
Posts: 8
|
03-20-2008 15:20
started that as well, but the way I want this to work is menu comes up I choose options Gems an it shows me a list of textures I can use on them an visa versa on the armband !?!
|