|
Freyja Nemeth
Registered User
Join date: 3 Jun 2007
Posts: 117
|
08-09-2007 10:13
Are there any scripts or tools that make it easier to replace batch-replace textures on an object? For example, switching out the textures on a hair for new ones.
If there's just one texture, no problem, but if there are multiple where you need texture A1 replaced with texture A2 and texture B1 replaced with texture B2, it starts to get a little trickier.
|
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
08-09-2007 11:02
Setting something like that up 'after the fact' is tricky, and close to impossible if you didn't make the thing.
It * is * possible to do it as part of an item's design, however, by embedding listener scripts in each prim that has to change, and having a control script in the root prim that uses llLinkMessage to send commands (and possibly texture UUID's) to the others.
llSetPrimParams can be used to change the texture or color of individual prim faces, but you need to know the face number of the prim for each texture to change. So you could, for example, make a stack of cubes like a Rubik's Cube, and you could script it to display a picture on each prim face when touched once, and then to "scramble" the textures by changing which face of each sub-cube was displaying a certain texture.
I believe it is also possible for one script in the root prim (without any scripts in the child prims) to change all linked child prims, either to a single texture or specificly to a given texture on each prim by numbered face. But controlling that to do much more than a bulk change? Well, you're probably just as well off to select the whole linkeset and apply whatever texture fits most of the prims, and then change the ones that need changing.
I do not know of any tool, however, that can be applied to a linkset, and which would allow you to replace the texture on all faces that are textured with a certain UUID. It would be really handy, but I don't think there are any suitable LSL commands to detect and change textures by their UUID, without knowing what face they are on for each prim.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|
|
Freyja Nemeth
Registered User
Join date: 3 Jun 2007
Posts: 117
|
08-09-2007 11:23
Thanks.  I suspected this was the case, but figured it was best to ask, in case I had overlooked something.
|
|
Annette Voight
Registered User
Join date: 20 Feb 2007
Posts: 3
|
08-13-2007 17:32
I actually met someone recently who has a script that sounds like what you are describing. She uses it to retexture all her hair, and the hair in the demo in her store uses 3 textures. You can check out the demo at her store (Case Colle 196,205,34) and it's going for L$1000. I don't know all the specifics of it, but her name is Gwendolyn Cassini in world if you want to talk to her about it 
|