These forums are CLOSED. Please visit the new forums HERE
Texture change script for linked prims |
|
|
Dorra Debs
Poptart
Join date: 20 Jul 2005
Posts: 177
|
03-25-2007 12:32
I need a script that will change the texture of a linked set of prims with 1 click. I see from doing a search that there are texture change scripts, but each prim must be clicked to make the change. Any ideas?
_____________________
|
|
Vlad Bjornson
Virtual Gardener
Join date: 11 Nov 2005
Posts: 650
|
Random Texture Changes on a Linked Group Script
03-25-2007 13:22
Here is something similar that I wrote for a tree that changes bark and leaf textures randomly.
It's a pair of scripts that will change the Parent object to one random texture and each linked object to another random texture. It might be easily modified for other purposes. This script goes into the Parent object: CODE // Random Texture Changing for Linked Object - Parent and this script goes into each of the other linked objects: CODE // Random Texture Changing for Linked Object - Child |
|
Dorra Debs
Poptart
Join date: 20 Jul 2005
Posts: 177
|
03-25-2007 15:54
I know next to nothing about scripting and don't have a clue how to modify the script posted. I did try the scripts and cant seem to get the children to behave properly. *mumbles about rotten kids*
_____________________
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-25-2007 20:27
With the new llSetLinkTexture() function, there is now a better way to do this, which only requires a single script. No longer do you need a script in every prim. I'll try to write a brief example here.
CODE
|
|
Vlad Bjornson
Virtual Gardener
Join date: 11 Nov 2005
Posts: 650
|
03-25-2007 21:06
Hey, wow - that is great! thanks for the info DoteDote. That is so much simpler
![]() |