Bind a parameter to a widget

Is there a way to bind a parameter to a widget through script? What I want to do is.

  • If i press a button, I want to assign parameter N to the rotary knob, so that when I use the rotary knob, it will affect the parameter.

I currently press the button and store the parameter in a variable. Then, when I use the rotary, I assign the value to the stored parameter using SetParameter(PLUGIN, Parameter, value)

But this will “jump” the value of the parameter. I want it to catch the value of the parameter.

The thing is - I want to control a parametric EQ but I only have 2 rotaries available and a bunch of buttons. So I want to use each button to assign a different parameter to eac of the rotaries.

I hope this is clear.

https://gigperformer.com/docs_5_0/SystemFunctionList.html#MapWidgetToPluginw%20:%20Widget%20plugin%20:%20Block%20parameterNumber%20:%20Integer