No internet connection
  1. Home
  2. Support

Half the time my "Send to RX" function does not work if the plugin is not already called up

By Matt Yocum @Matt_Yocum
    2022-10-13 19:11:58.760Z

    Half the time my "Send to RX" function does not work if the plugin is not already called up

    System Information

    SoundFlow 5.1.11

    OS: darwin 21.6.0

    ProductName: macOS
    ProductVersion: 12.6
    BuildVersion: 21G115

    Steps to Reproduce

    1. Open PT session with audio
    2. Select Clip
    3. Activate "Send to RX" function on streamdeck (In this case RX Connect 10)

    Expected Result

    Should launch RX Connect 10 and send to Editor

    Actual Result

    Getting error prompt "Clickbuttonaction requires UI Element

    Workaround

    Open RX connect 10 first

    Other Notes

    This is randomly intermittent. Cannot find consistent repro


    Links

    User UID: ShGWcGXzu2dzdsOHjNepjcRMrYw2

    Feedback Key: sffeedback:ShGWcGXzu2dzdsOHjNepjcRMrYw2:-NEHkf8UMlP76LG4uqJz

    Feedback ZIP

    • 7 replies
    1. Hi Matt,

      Please report this via bit.ly/sfscripthelp - that way we can see the contents of your script/macro :)

      1. Please know that the Dialog Editing iZotope package has a built in function for this that works just fine, so you might want to just download something from the Store (there's a lot of macros for this in different packages)

        1. MMatt Yocum @Matt_Yocum
            2022-10-14 18:13:16.413Z

            Hey Christian,

            Yeah the script I'm using is made from that dialogue editing package. Its identical with the exception of swapping out RX6 for RX10

            1. MMatt Yocum @Matt_Yocum
                2022-10-14 18:13:59.799Z

                Here's the script

                
                var win = sf.ui.proTools.getAudioSuiteWindow('RX 10 Connect');
                if (!win || !win.exists) {
                    win = sf.ui.proTools.audioSuiteOpenPlugin({
                        category: 'Noise Reduction',
                        name: 'RX 10 Connect'
                    }).window;
                }
                
                win.getFirstWithTitle("Analyze").elementClick();    
                
                
                
                1. Hm yea that looks correct.

                  Perhaps this is Pro Tools just being slow at building the AudioSuite window.

                  You could add an elementWaitFor action before the elementClick to wait for the Analyze button to be present before trying to click it.

                  1. MMatt Yocum @Matt_Yocum
                      2022-10-14 18:40:33.885Z

                      Thanks for the response, Christian.

                      Could you actually show me how that would need to be typed out? Sorry I'm not a coder by any means so I wouldn't want to accidentally screw up the script

                      1. Try this:

                        var win = sf.ui.proTools.getAudioSuiteWindow('RX 10 Connect');
                        if (!win || !win.exists) {
                            win = sf.ui.proTools.audioSuiteOpenPlugin({
                                category: 'Noise Reduction',
                                name: 'RX 10 Connect'
                            }).window;
                        }
                        
                        win.buttons.whoseTitle.is("Analyze").first.elementWaitFor({
                            timeout: 4000,
                        }, `Analyze button didn't appear in time`);
                        
                        win.buttons.whoseTitle.is("Analyze").first.elementClick();