1.) insert a multislider(gradient, one slider, grid = 11,capture)
2.) under this multislider object make new expressions (second1, second2, ... , second10) -> second1 = 11, second2 = 22,...
3.) make a script on expression x
Code: Select all
decl max = getattribute(getobject(),'grid_steps'); // needed if you need to loop through the elements
decl temp = x * 10;
ctlout(0,getexpression(getobject(),'keyout' + floor(temp)),127,3);
here you have to use numbers, so it is not possible to use more than one value per expression...
you can also group the keyout in a expression, second = {keyout1,keyout2,...}
Code: Select all
cltout(0,getexpression(getobject(),'second')[floor(temp) - 1],127,3);
hope this helps ?