Plug'n Script: Setting default for switches in .cxx

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

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;
}
You do not have the required permissions to view the files attached to this post.

Post

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).

Post

thank you.

Post Reply

Return to “Blue Cat Audio”