I want to create a script that will send a clip from Pro Tools to RX as "Reference" instead of Repair, but the Click UI macro will not allow me to select/click on either. Same for Auto Align Dynamic/Static mode and Ambience Match's "Output Ambience Only". I think they are not getting recognized as a clickable option.
- Christian Scheuer @chrscheuer2019-10-02 07:22:35.572Z
You'll need the Mouse Click Relative to UI Element action, where you can specify a relative position the mouse should click, relative to for example the top left corner of the open audio suite window.
This would be done in the Macro editor (you can then always copy the resulting action to script by clicking the 3 small dots and choosing "Copy as Javascript").- CCarlo Scrignaro @Carlo_Scrignaro
Ah I was hoping this would work, but it's not for me :(
Christian Scheuer @chrscheuer2019-10-02 17:18:13.890Z
@Carlo_Scrignaro, maybe this example will help you - this works for me in RX7 Connect:
sf.ui.proTools.appActivateMainWindow(); var asWin = sf.ui.proTools.getAudioSuiteWindow('RX 7 Connect'); asWin.elementRaise(); asWin.mouseClickElement({ relativePosition: { x: 170, y: 295 } });
- CCarlo Scrignaro @Carlo_Scrignaro
So weird, I basically get this error message whenever I try the Mouse Click Relative to UI Element action (when picking where to click)
Christian Scheuer @chrscheuer2019-10-02 17:23:16.397Z
I just saw the same one. Where did you click here?
I'll log a bug report for this.- CCarlo Scrignaro @Carlo_Scrignaro
Clicked on "static" in auto align and tried for Output Ambience Only in Audiosuite Amb Match, same for when I tried Reference in Connect :(
PS. The script you sent works for selecting Reference in Connect. Building that into another script to send to RX ;)
Christian Scheuer @chrscheuer2019-10-02 17:31:28.788Z
Thank you Carlo! We'll take a look at fixing the bug asap. Thank you for verifying the script above worked for you for now.
- In reply tochrscheuer⬆:
Dario Ramaglia @dario.ramaglia
Is there a way to reveal the relative position values inside a plugin? How did you find the right values inside RX Connect? Just trying and trying different values?
Christian Scheuer @chrscheuer2019-10-03 08:45:47.739Z
I used Ctrl+Shift+Cmd+4 to take a screenshot, it shows you relative values. Then I dragged from the top left corner of the window :)
Christian Scheuer @chrscheuer2019-10-05 16:41:15.808Z
This will be fixed in 3.1 :)