Page 1 of 1

Scripting Help

Posted: 24 Sep 2016 06:16
by Zacky_Momo
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.

Code: Select all

if(Fader.x>30)setattribute(Fader,'color',26642);

Re: Scripting Help

Posted: 26 Sep 2016 21:45
by MrCorba
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

Code: Select all

if(Fader.x > 0.3) setattribute(Fader,'color',26642);
Hopefully this makes your function work;)