ParameterChanged function

The ParameterChanged() function lets you perform tasks triggered by changes to plug-in parameters. ParameterChanged is called each time one of the plug-in’s parameters is set to a new value. ParameterChanged is also called once for each parameter when you load a plug-in setting.

ParameterChanged is called with two arguments, first the parameter index (an integer number starting from 0), then the parameter value (a number).

Code example

Print parameter changes to the plug-in console. This example also creates a slider in the plug-in window and assigns the ParameterChanged function to it.

Text following “//” describes the argument function.

var PluginParameters = [{name:"Slider"}]; // create a slider (default range 0.0 - 1.0)function ParameterChanged(param, value) // if it's the slider you just createdif (param == 0) {Trace(value); // print the value to the console}