Scripting Help

Discuss Lemur and share techniques.
Post Reply
Zacky_Momo
Newbie
Posts: 7
Joined: 18 Mar 2016 03:34

Scripting Help

Post 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);
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Scripting Help

Post 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;)
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
Post Reply