Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Changing multiple textures on multiple prims

AeronAoife Grigges
Registered User
Join date: 17 Jan 2007
Posts: 25
11-24-2007 23:04
Is it possible to pass a variable to several scripts at once?

For example, if a user clicks on a menu item to change an object color, how would the variable be passed to three or four prims where each prim needs a different texture changed?

I'm assuming that each prim that needs a texture will be on a different channel, but need to know how to tell the script to send the correct texture UUID to the correct channel and on the correct side of the prim. If possible that is.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-24-2007 23:17
if they are all changing to the same color/texture, you can use linked messages to send that color/texture and have each script process that message for the change

if they are all changing to a praticular set (ie prim one is red, prim 2 has texture xyz, prim 3, is orange, etc) and those items are always a matching set, you could use a link message with a variable, (like set 1) and have each script process it's own changes that equal 'set 1'

you can do it all from the same script, using setLink* commands, but for large #'s of child prims you can run into updates that don't happen all at once, but have more of a rolling update sequence. this is usually more sim friendly (no extra overhead for more scripts). but can ruin some effects.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -