markg
May 16, 2020, 10:52pm
1
I would like to assign buttons on my midi controller to open/close plugins for fast editing of deep parameters (that you would not create widgets for). Is this possible without a custom script? I don’t see any OSC commands for this either.
Thanks for any help…
Hi @markg , welcome to the GP community.
I am affraid you need a little help from a script for this:
Hi @tmart , welcome to the comunity. Here is a gigfile with a widget button which opens a plugin window: Plugin_button.gig (8.7 KB)
It is based on this script:
//$
// DO NOT EDIT THIS SECTION MANUALLY
Var
PLUGIN : PluginBlock
PLUGIN_BUTTON : Widget
//$
// Called when a widget value has changed
On WidgetValueChanged(newValue : double) from PLUGIN_BUTTON
If (newValue > 0.5)
Then
OpenPlugin(PLUGIN);
Else
ClosePlugin(PLUGIN)
End
End
I think for this kind of thing it is also good to set the option in Options=>Preferences=>“Keep plugin window on top”.
I hope it is what you need, if not don’t hesitate to ask again
Additionnaly you need to define handles for both the widget:
and the plugin block:
so that GPScript can find them.
1 Like
markg
May 16, 2020, 11:41pm
3
//$
// DO NOT EDIT THIS SECTION MANUALLY
Var
PLUGIN : PluginBlock
PLUGIN_BUTTON : Widget
//$
// Called when a widget value has changed
On WidgetValueChanged(newValue : double) from PLUGIN_BUTTON
If (newValue > 0.5)
Then
OpenPlugin(PLUGIN);
Else
ClosePlugin(PLUGIN)
End
End
Thanks! I was able to get that working. Midi > Widget > GP Script > Open Plugin
1 Like