No internet connection
  1. Home
  2. Macro and Script Help

Script to render an already-open AudioSuite instance of EQ3 1-Band (I'm new!)

By SAMUEL J MAUL @SAMUEL_J_MAUL
    2024-10-30 15:54:15.205Z

    Title

    Script to render an already-open AudioSuite instance of EQ3 1-Band (I'm new!)

    What do you expect to happen when you run the script/macro?

    Nothing seems to happen.

    Are you seeing an error?

    What happens when you run this script?

    Nothing happens in Pro Tools when I run this command.

    How were you running this script?

    I used a keyboard shortcut within the target app

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "Nothing seems to happen.",
        "inputIsError": false,
        "inputWhatHappens": "Nothing happens in Pro Tools when I run this command.",
        "inputHowRun": {
            "key": "-Mpfwh4RkPLb2LPwjePT",
            "title": "I used a keyboard shortcut within the target app"
        },
        "inputImportance": 5,
        "inputTitle": "Script to render an already-open AudioSuite instance of EQ3 1-Band (I'm new!)"
    }

    Source

    const asPluginName = "EQ3 1-Band"
    
    sf.ui.proTools.appActivateMainWindow();
    
    //Get AS window
    const asWindow = sf.ui.proTools.windows.whoseTitle.is(`Audio Suite: ${asPluginName}`).first;
    
    // Focus AS window
    asWindow.elementRaise();
    
    // Define render button
    const renderButton = asWindow.buttons.whoseTitle.is("Render").first;
    
    // Click Render button
    renderButton.elementClick()
    

    Links

    User UID: fakTJ14fhkVRkA4ia4NkJd3rRKu1

    Feedback Key: sffeedback:fakTJ14fhkVRkA4ia4NkJd3rRKu1:-OAT7bn6Mar4T6J1aSj0

    Feedback ZIP: 0E9qNHsaIe7fnlXVOgL3BpxSSJqrWpQ/0zrvaKBMeetwNCQn++2HS0L5dacnOscW/pcwBAIZFfVW9glwnfV3R+QObZkH7KbpAKh8Xdxa4Daoz4FeJjpBjzYt8jzQLd7Y9sc9zjxbrh6pxZbAdGiLp8mL7gdTH+7My37RmhZHqJB8vHsDH3SUMe78Y4vF6ylmDtoz/1y2tUXTZMNaCjg9yFJNKdizdUZxe4h/puRJ+S1tsnU28TWC5YPsHIer5J70hy7B/t/0Dh+Vu9LEox/JsT7krninRnqRWCKStSmUyXHgdJANu34s5BnJvErN49eIZRaJ3HqvfaMLhQVsNSp4/SiwWdS3Hx9HlBR3BRWM11o=

    Solved in post #10, click to view
    • 10 replies
    1. Chad Wahlbrink @Chad2024-11-04 21:54:27.356Z

      Hi @SAMUEL_J_MAUL,

      The script you shared works on my system currently. Looking at your logs, it doesn't seem like any scripts have been run successfully. I'm curious if you have a conflicting key command with different software that is blocking this action.

      To rule this out, could you try assigning an alternate keyboard trigger? If that still does not work, can you try using the "Run Command" button from the script editor?

      1. S
        In reply toSAMUEL_J_MAUL:
        SAMUEL J MAUL @SAMUEL_J_MAUL
          2024-11-13 03:06:49.912Z

          Okay, when I assign the key command shitt+opt+command+E and then use that keyboard shortcut, here's the error message I get:

          When I just hit Run Command, here's the error message I get:

          For what it's worth, I do have Kensington Works installed but I don't believe I'm using that key command with that application (or any others, to my knowledge). Ultimately what I need to be able to do is assign buttons on my Kensington Expert mouse to key commands that will run Audiosuite actions. I can't seem to make it all talk to each other...

          1. Chad Wahlbrink @Chad2024-11-14 17:26:26.436Z

            Hi, @SAMUEL_J_MAUL,

            I appreciate you sharing a bit more info on what is happening for you.

            The first issue I'm seeing is likely related to some legacy commands that are in the Pro Tools Package.

            I believe you are likely running the "Open, Render, and Close AudioSuite" presets for EQ3 7-Band (Mono) in that first screenshot.

            That is a legacy command, and I'll log a bug that this is not working. Thanks for bringing this to our attention.

            To work around this, you can create a new preset with the " (Stereo)" removed from the "EQ3 7-Band" name.

            The second error for "Render EQ3 1-Band" is likely a typo in the script somewhere making the code invalid. This will be indicated in the script editor with a red line under the invalid code, and a red highlight in the scroll bar.

        • S
          In reply toSAMUEL_J_MAUL:
          SoundFlow Bot @soundflowbot
            2024-11-14 19:27:15.318Z

            This report was now added to the internal issue tracked by SoundFlow as SF-1516

            1. S
              In reply toSAMUEL_J_MAUL:
              SAMUEL J MAUL @SAMUEL_J_MAUL
                2024-11-25 17:21:06.477Z

                Hey Chad, thanks for the reply. When I copy/pasted the preset and renamed the plugin to eliminate "Mono", that seemed to help...but now it tells me that it Could Not Select Clip By Clip and Could Not Open Pop Up Menu.

                I wonder - Is there any possibility of just hopping on a Zoom and perhaps working through a couple things in real time? It's certainly worth the $9.99/mo to me if I can get this to work (and probably also to my colleagues at the studio I work out of) but I'm unfortunately a bit limited on time at the moment for troubleshooting and sifting through the impressive body of helpful literature you guys have.

                1. Chad Wahlbrink @Chad2024-11-25 18:37:12.485Z

                  Hi @SAMUEL_J_MAUL,

                  Yes, we can hop on a quick zoom if best for you.

                  Can you reach out to support@soundflow.org when you get a chance? That way we can coordinate a zoom to troubleshoot this a bit for your system.

                  1. In reply toSAMUEL_J_MAUL:
                    Chad Wahlbrink @Chad2024-12-05 17:48:36.022Z

                    Hey @SAMUEL_J_MAUL,

                    Thanks for the time today.

                    Here's the full script I wrote with you on the call:

                    
                    // Define the Plugin
                    const asPluginName = "EQ3 7-Band";
                    
                    // Define the Plugin Menu Path
                    let asPluginPath = ['AudioSuite','EQ','EQ3 7-Band'];
                    
                    // Change 'Basic HPF' to whatever you want your preset name to be
                    const asPreset = "Basic HPF"
                    
                    ////////////////////////////////////
                    ////////////SCRIPT//////////////////
                    ////////////////////////////////////
                    
                    if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
                    
                    sf.ui.proTools.appActivateMainWindow();
                    sf.ui.proTools.mainWindow.invalidate();
                    
                    // Define the plugin window 
                    const asWindow = sf.ui.proTools.windows.whoseTitle.is(`Audio Suite: ${asPluginName}`).first;
                    
                    // Open Plugin if It's Not Open Already
                    if(!asWindow.exists){
                        sf.ui.proTools.menuClick({menuPath:asPluginPath});
                        asWindow.elementWaitFor({waitType:"Appear"});
                    }
                    
                    // Open The Preset if it's not already loaded
                    if(sf.ui.proTools.firstAudioSuiteWindow.popupButtons.whoseTitle.is("Preset").first.value.value !== asPreset){
                        sf.ui.proTools.firstAudioSuiteWindow.popupButtons.whoseTitle.is("Preset").first.popupMenuSelect({menuPath:[asPreset]});
                    }
                    
                    // Focus AS window
                    asWindow.elementRaise();
                    
                    // Define render button
                    const renderButton = asWindow.buttons.whoseTitle.is("Render").first;
                    
                    // Click Render button
                    renderButton.elementClick();
                    
                  2. S
                    In reply toSAMUEL_J_MAUL:
                    SoundFlow Bot @soundflowbot
                      2024-12-10 02:23:40.205Z

                      Linked issue SF-1516 updated: In version 1.1.6 of the Pro Tools package, we now warn users if using a legacy preset ending in " (Mono)" or " (Stereo)".

                      ReplySolution
                      1. S
                        In reply toSAMUEL_J_MAUL:
                        SoundFlow Bot @soundflowbot
                          2024-12-10 02:23:42.928Z

                          The linked internal issue SF-1516 has been marked as Done