Page 1 of 1

Selecting Variables

PostPosted: Sun Dec 02, 2018 8:52 pm
by pianist
I have 70 Custom Script Buttons each executing a unique fade duration (with a unique variable) when clicked. I want to create an easy programming for each of those variables. Rather than having 70 faders (or wheels or encoders) for each Custom Script Button, I would love to have just one single wheel to first select any of the 70 variables ready for receiving the input from the second wheel which sets the fade time of the selected variable. How to accomplish this?

Jacob

Re: Selecting Variables

PostPosted: Mon Dec 03, 2018 11:52 am
by Chris Bowman
Hi Jacob,

If I were you I would create a List variable containing my 70 values. Create two Encoder wheels. Set the range of the first from 0-70. The range of the second is up to you!

Create a 'Save' Button and use the following code to update:

Code: Select all
MyList[Encoder1.Value.ToInteger] = Encoder2.Value


Chris

Re: Selecting Variables

PostPosted: Tue Dec 04, 2018 4:59 pm
by pianist
Thanks! This helped me a lot!

Jacob