Hi Christian,
Could the OBJ/BUS button in the Automation window be added to the list?
This is what i'm trying to do:
var svol = sf.ui.proTools.automationWindow.enableSendVolumeAutoButton.value.invalidate().value === 'Selected'
if (svol) {sf.ui.proTools.automationWindow.enableSendVolumeAutoButton.proToolsAutomationClickButton();}
I can't use element click as it cannot determine if it is selected or not.
Thanks!
Johnny
- Christian Scheuer @chrscheuer2020-10-31 12:21:03.798Z
Hi Johnny,
Can you elaborate on what you want the script to do? Do you want it to only turn off OBJ/BUS automation?
- JJohn Traunwieser @John_Traunwieser
I receive many sessions with all of the parameters enabled, which is not what I want, so it's part of my session prep script that interrogates the automation window, checks to see what is selected, then deselects everything except volume auto. There seems to be a button for every other parameter except Object/Bus, which I believe they added a year or two ago.
Christian Scheuer @chrscheuer2020-10-31 18:12:49.034Z
Ah ok - try this:
let objBusToggleBtn = sf.ui.proTools.automationWindow.buttons.whoseTitle.is('Enable Object/Bus Toggle Automation').first; if (objBusToggleBtn.value.invalidate().value === "Selected") objBusToggleBtn.elementClick();
- JJohn Traunwieser @John_Traunwieser
I thought I tried something like that, but it didn't work.... you are brilliant. It works, thanks!!