Jump to content
  • 0
Sign in to follow this  
Rune Greenwood

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

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

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

Question

  • 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 3030 days.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...