Aislin Pennyfeather
garlic? bread?
Join date: 27 Sep 2004
Posts: 10
|
01-02-2005 11:55
I was wondering if it would be possible to build an object - say a house - and have the ability to swap a number of textures on a command so you could instantly change decor inside and out... does anyone know about this sort of thing? thanks
|
Ardith Mifflin
Mecha Fiend
Join date: 5 Jun 2004
Posts: 1,416
|
01-02-2005 12:07
It would indeed be possible. However, changing textures would, as far as I know, require that each individual component of the house be scripted. Changing color would be somewhat simpler, as it would need only a single central script, but would require determining link numbers.
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
01-02-2005 12:43
Hmm, it's posible, but requires setup. Before you build your house, setup some common prims with a script. That way you can simply drag/copy without havng to insert scripts into every prim. Once you've built the house, texture it one way and say, "Save texture set 1" and the scripts will save the settings. Then, retexture the house and say, "Save texture set 2." After that, say, "Load Texture set 1 or 2" to change the house.
The same script would reside in each prim. It would listen on a private channel for your commands. On the save commands, llGetPrimitiveParams() would be called within a loop to match llGetNumberOfSides(). Each loop would save a list such as set1A[] - set1F[] and set2A[] - set2F[]. This procedure would reverse on "Load" commands using the same loop but with llSetPrimitiveParams().
|
Aislin Pennyfeather
garlic? bread?
Join date: 27 Sep 2004
Posts: 10
|
01-02-2005 14:55
thanks! That sounds manageable although I may have to smile nicely at my script savvy friend for some help
|