Half the time my "Send to RX" function does not work if the plugin is not already called up
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
- Open PT session with audio
- Select Clip
- 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
- Christian Scheuer @chrscheuer2022-10-14 13:40:35.961Z
Hi Matt,
Please report this via bit.ly/sfscripthelp - that way we can see the contents of your script/macro :)
Christian Scheuer @chrscheuer2022-10-14 13:41:23.459Z
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)
- MMatt Yocum @Matt_Yocum
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
- MMatt Yocum @Matt_Yocum
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();
Christian Scheuer @chrscheuer2022-10-14 18:31:55.521Z
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 theelementClick
to wait for the Analyze button to be present before trying to click it.- MMatt Yocum @Matt_Yocum
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
Christian Scheuer @chrscheuer2022-10-14 18:47:53.910Z
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();