Linnrenate Crosby
Registered User
Join date: 5 Jun 2007
Posts: 49
|
07-30-2009 04:01
Hi all,
i have a script that cycle through different colors in a nice way, but if i put it in several prims they sort of get unsynced in time. So i thought that if i could make the script effect all prims named colorprim that might do the trick as then only 1 script will run instead of one in each prim.
So the tough question is how do i make it, i have no clue whatsoever about scripting, i cut and paste, comment out and enable to make scripts behave as i want.... so i really hope a kind person out there can tell me the lines i need to put into the script.
Thanks
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
07-30-2009 04:13
You can use this function: http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParamsWith that you can set the color on all prims in a linkset from one script Happy Scripting 
_____________________
From Studio Dora
|
Linnrenate Crosby
Registered User
Join date: 5 Jun 2007
Posts: 49
|
07-30-2009 04:17
Thanks Dora.... that is a shitload of text to read through, and as i stated above my knowledge for scripts are limited.... very limited in fact  Guess i will keep it as it is and just reset the object whenever the colors are to much out of sync
|
jeaniesing Trilling
Loves to animate & script
Join date: 21 Oct 2006
Posts: 61
|
07-30-2009 05:25
If the whole prim is changing color, I think llSetLinkColor(put the number of the link here, put the color vector here,ALL_SIDES) (All-Sides can be changed to a side number)
the lack of sync might be llSetLinkPrimitiveParams haveing a small delay after each command...
you can also put this script in each prim
default { link_message(integer sender_num, integer num, string msg, key id) { if(num=42)llSetColor((vector)msg,ALL_SIDES); } }
and then thisin the main script:
llMessageLinked(LINK_SET,42,(string)Color_Vector,NULL_KEY);
but above it you have to tell it what the color vector is.... vector Color_Vector= ________ from the script
_____________________
  Pinastri/113/171/30
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
07-30-2009 07:19
From: jeaniesing Trilling the lack of sync might be llSetLinkPrimitiveParams haveing a small delay after each command... I hardly think so, it is called once for all prims and the OP never got around to use it anyway, she thinks that: "is a shitload of text to read through"! Some people don't like work and some don't like to have dirt on their hands 
_____________________
From Studio Dora
|