Fader Script to Select Tabs
Posted: 27 Jan 2014 09:07
Hi,
I'm trying to sort out a script.. I want the position of a fader to determine the selected tab of a container. This is based on a MIDI message sent to Lemur from my DAW (not my manual movement of the fader) and it doesn't necessarily even have to be a fader, just something that can select a tab based upon the current position of a particular CC value...
Here's what I'm currently working with:
if(firstof.x>=0.75) selecttab(ContainerDiva,0);
else
if(firstof.x>=0.5) selecttab(ContainerDiva,1);
else
if(firstof.x>=0.25) selecttab(ContainerDiva,2);
else
selecttab(ContainerDiva,3);
Any help with this would be greatly appreciated, I'm a little stumped as to what I'm doing wrong!
Cheers
I'm trying to sort out a script.. I want the position of a fader to determine the selected tab of a container. This is based on a MIDI message sent to Lemur from my DAW (not my manual movement of the fader) and it doesn't necessarily even have to be a fader, just something that can select a tab based upon the current position of a particular CC value...
Here's what I'm currently working with:
if(firstof.x>=0.75) selecttab(ContainerDiva,0);
else
if(firstof.x>=0.5) selecttab(ContainerDiva,1);
else
if(firstof.x>=0.25) selecttab(ContainerDiva,2);
else
selecttab(ContainerDiva,3);
Any help with this would be greatly appreciated, I'm a little stumped as to what I'm doing wrong!
Cheers