Jump to content
  • 0

trying to make a color based script that changes the color of all prims every few seconds


Rune Greenwood
 Share

You are about to reply to a thread that has been inactive for 4353 days.

Please take a moment to consider if this thread is worth bumping.

Question

2 answers to this question

Recommended Posts

  • 0

You're right.  This question would have been much better in the LSL Scripting forum, but that's OK.  The simple answer you want is the example script at http://wiki.secondlife.com/wiki/LlSetLinkColor .  Making it fade to the next color is more complicated than that script, but still fairly easy if you have had any practice scripting. If you want to try it, I  suggest doing the fade with a timer event in which you fade first to a neutral color (either black or white) and then fade in to the new color. Just change each of the three components (R, G, B) of color vector by 10% of its value in each time step.  If you get stuck and need help, post what you have done in the LSL Scripting forum.

  • Like 1
Link to comment
Share on other sites

  • 0

An alternative approach, which I use sometimes, is to make a colour gradient in Gimp or Photoshop, upload that, and then play around with llSetTextureAnim or  llSetLinkTexureAnim.   

It's not always a good solution, of course, but it's worth knowing about because, when it will work for what you're trying to do, it's very effective and also very economical of script time.

 

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4353 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...