General

Scripting Help

Started by Zacky_Momo on .

Sign in or create an account to join the conversation.

2 posts

Topic starter
Hi there, I'm quite new to scripting and I am trying to do something but I cannot get it to work. I am trying to make a Fader change color once it reaches a certain value. I've tried doing something like this.
if(Fader.x>30)setattribute(Fader,'color',26642);
Without trying it myself I think this problem is due to the fact the lemur fader only goes from 0 to 1. So if you want to change the color at say, 30%, you need to change your code to this
if(Fader.x > 0.3) setattribute(Fader,'color',26642);
Hopefully this makes your function work;)