Hi
How can I move a slider(or button) in a audiosuite window? I know how to do this in RX, but I want the same functionality in PT Audiosuite Windows. Clicking the value and typing a new value is not a very good solution.
Linked from:
- Christian Scheuer @chrscheuer2020-03-17 10:20:18.275Z
If you know how to do it in RX, you could use this code as inspiration on how to adapt your RX code:
This example takes the first open Audio Suite window (last one to be focused) and increments the Mid Band Gain parameter (test this with EQ3 7-Band)
var pluginView = sf.ui.proTools.firstAudioSuiteWindow.children.whoseTitle.is('PluginView').first; if (!pluginView.exists) throw "Could not find open Audio Suite plugin view"; //Use this to log a list of all parameter names: //log(pluginView.children.map(c => c.title.value).join('\n')); var parameterSlider = pluginView.children.whoseTitle.is('Mid Band Gain').first; parameterSlider.elementClick({ actionName: 'AXIncrement' });
- NN Leyers @NickLeyers_old_acc
Cool, that works, thanks. Using it on other parameters is something I'll look into one of the following days. Thanks for starting me up!!
- In reply tochrscheuer⬆:
Andrew Scheps @Andrew_Scheps
Is there a similar way to do this in an insert plugin window? Never mind, I found it. Unfortunately some plugins (like Melodyne) don't report their controls.
Christian Scheuer @chrscheuer2020-03-18 07:31:42.643Z
Yea I would expect this to only work for parameters that can be automated.
Andrew Scheps @Andrew_Scheps
That makes sense.
- In reply tochrscheuer⬆:
Andrew Scheps @Andrew_Scheps
What are the other valid values for actionName? I can't find any documentation on that parameter.
Christian Scheuer @chrscheuer2021-09-11 14:23:25.717Z
These are defined by the target application. 99% of controls just accept AXPress, but sliders usually accept AXIncrement and AXDecrement as well.
You can use Accessibility Inspector to reveal those, I think.Christian Scheuer @chrscheuer2021-09-11 14:24:02.418Z
The default value for actionName, when not specified, is AXPress.
Andrew Scheps @Andrew_Scheps
Great, thank you!