No internet connection
  1. Home
  2. Support

Pro Tools Automation Window - OBJ/BUS

By John Traunwieser @John_Traunwieser
    2020-10-30 23:30:05.733Z

    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

    Solved in post #4, click to view
    • 4 replies
    1. Hi Johnny,

      Can you elaborate on what you want the script to do? Do you want it to only turn off OBJ/BUS automation?

      1. JJohn Traunwieser @John_Traunwieser
          2020-10-31 13:49:06.213Z

          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.

          1. 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();
            
            ReplySolution
            1. JJohn Traunwieser @John_Traunwieser
                2020-10-31 18:59:13.543Z

                I thought I tried something like that, but it didn't work.... you are brilliant. It works, thanks!!