No matter what I try, these two switches always seem to be "ON".
As you can see, I've tried setting the values in the inputParametersDefault and initialize() function.
But on a script refresh, they still show "ON"
I must misunderstand something very basic.
Can anyone help?
array<string> inputParametersNames={"Mode", "SW2"};
array<string> inputParametersEnums={"Play;Record","Off;On"};
array<double> inputParameters(inputParametersNames.length);
array<int> inputParametersSteps={2,2};
array<double> inputParametersMin={0,0};
array<double> inputParametersMax={1,1};
array<double> inputParametersDefault={0,1};
void initialize() {
inputParametersDefault[0]=0;
inputParametersDefault[1]=1;
}
Plug'n Script: Setting default for switches in .cxx
-
- KVRer
- 28 posts since 25 Aug, 2018
You do not have the required permissions to view the files attached to this post.
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6343 posts since 8 Sep, 2004 from Paris (France)
The default value is the value that is set when right or alt-clicking on the controls.
When you load a script, the value of the controls is not changed. If you want to get some particular values upon load, you should use a preset instead (the preset saves both the values and the script).
When you load a script, the value of the controls is not changed. If you want to get some particular values upon load, you should use a preset instead (the preset saves both the values and the script).
-
- KVRer
- Topic Starter
- 28 posts since 25 Aug, 2018
thank you.