Re: Display program name in a fader or monitor
Posted: 10 Jan 2012 15:05
I fixed it for you --- sort of. But it's limited to 52 items and I added a little thing to make the fader and text box follow each other but I've somehow gotten it backwards. lol.
I imagine there is some sort of an array that could be implemented for a more graceful solution here but I have no idea how.
I have never gotten the == compare to work.
I used >= or <= and it works.
To get around the 0-1 fader output, I just divided each discrete Fader.x output by 128. (0, 1/128, 2/128,3/128, 4/128 etc)
I also discovered (hopefully I messed up somewhere and it's not so) that the limit on the amount of if's in the script is for 52 items in the text box.
Also, the script window grays out legitimate text after about 24 lines but it still functions.
I got it to work to a point.
However, can someone help me, too?
I included a text box that follows the fader as it goes up and down but it does in the opposite direction. How do I get the text box to remain next to the fader knob as it goes up and down?
I imagine there is some sort of an array that could be implemented for a more graceful solution here but I have no idea how.
I have never gotten the == compare to work.
I used >= or <= and it works.
To get around the 0-1 fader output, I just divided each discrete Fader.x output by 128. (0, 1/128, 2/128,3/128, 4/128 etc)
Code: Select all
if(Fader.x<=0)setattribute(Text,'content','1');
if(Fader.x>=(1/128))setattribute(Text,'content','2');
if(Fader.x>=(2/128))setattribute(Text,'content','3');
if(Fader.x>=(3/128))setattribute(Text,'content','4');
if(Fader.x>=(4/128))setattribute(Text,'content','5');
if(Fader.x>=(5/128))setattribute(Text,'content','6');
Also, the script window grays out legitimate text after about 24 lines but it still functions.
I got it to work to a point.
However, can someone help me, too?
I included a text box that follows the fader as it goes up and down but it does in the opposite direction. How do I get the text box to remain next to the fader knob as it goes up and down?
But a menu won't work for 128 items. It only shows 32 max, iirc. Is there a way to link up about 4 menus conditional on what the Fader.x output would be? That would help in another sticky mess I've gotten into. Wait. I bet there is. Just set four different ranges to go to their respective menus.protocol wrote:The last suggestion is creating a lemur menu and having that have selections of a given name, that way when you select things it will send out a value and be associated with a name instead.