I'm using an IMAGE_ACTION_BUTTON to randomise parameters on my plugin. It calls an ACTION that runs a script. It works, but sometimes the results are unexpected, as though some parameters update and others don't. Could you have a glance at my code below and see if there are any obvious errors? By the way, this is a custom skin in use after the plugin has been exported, hence dsp.input1 etc.
Code: Select all
<EXPOSED_OBJECTS object_ids="dsp.input1.*;dsp.input2.*;dsp.input3.*" />
<ACTION id="randomise" type="Script" script="
dsp.input1.BeginCapture();
dsp.input1 = rand(dsp.input1.min, dsp.input1.max);
dsp.input1.EndCapture();
dsp.input2.BeginCapture();
dsp.input2 = rand(dsp.input2.min, dsp.input2.max);
dsp.input2.EndCapture();
dsp.input3.BeginCapture();
dsp.input3 = rand(dsp.input3.min, dsp.input3.max);
dsp.input3.EndCapture();" />
<IMAGE_ACTION_BUTTON action="randomise" />
Thank you!