No internet connection
  1. Home
  2. How to

Slider in Audiosuite window

By N Leyers @NickLeyers_old_acc
    2020-03-17 07:07:30.078Z

    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.

    Solved in post #2, click to view
    • 9 replies
    1. 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'
      });
      
      ReplySolution
      1. NN Leyers @NickLeyers_old_acc
          2020-03-17 13:15:06.324Z

          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!!

          1. In reply tochrscheuer:
            Andrew Scheps @Andrew_Scheps
              2020-03-17 18:10:59.748Z2020-03-17 18:29:37.385Z

              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.

              1. Yea I would expect this to only work for parameters that can be automated.

                1. Andrew Scheps @Andrew_Scheps
                    2020-03-18 10:20:49.726Z

                    That makes sense.

                2. In reply tochrscheuer:
                  Andrew Scheps @Andrew_Scheps
                    2021-09-11 12:32:28.707Z

                    What are the other valid values for actionName? I can't find any documentation on that parameter.

                    1. 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.

                      1. The default value for actionName, when not specified, is AXPress.

                        1. Andrew Scheps @Andrew_Scheps
                            2021-09-11 14:28:47.833Z

                            Great, thank you!