No internet connection
  1. Home
  2. How to

Automation Follows Edit Toggle On/Off (Pro Tools)

By Gary Keane @Gary_Keane
    2024-03-25 15:08:32.224Z

    Anyone know how to make a toggle on/off 'Automation Follows Edit' button for SoundFlow on Pro Tools?

    Solved in post #7, click to view
    • 7 replies
    1. This should do it:

      const autoFollowsEditBtn = sf.ui.proTools.mainWindow.cursorToolCluster
          .buttons.whoseTitle.is("Automation Follows Edit").first
      
      autoFollowsEditBtn.elementClick()
      
      // Delete or comment the folowing if you don't want 
      // a notification of the current state of the button
      
      const buttonState = autoFollowsEditBtn.value.invalidate().value == "Selected" ? "On" : "Off"
      
      log (`Automation Follows Edit is: ${buttonState}`,"")
      
      1. G
        In reply toGary_Keane:
        Gary Keane @Gary_Keane
          2024-03-25 16:28:03.138Z

          Thanks Chris! This works a treat but one quick question - is there any way of it not coming up on the log pop up window every time do you know? Screen attached. Really appreciate it

          1. GGary Keane @Gary_Keane
              2024-03-25 16:28:40.492Z

              Ah, I just re-read the code! Ignore that

            • In reply toGary_Keane:

              Hint: You can do this yourself without needing a script by:

              • Creating a new Macro
              • Click Add Action button
              • Search for the "Click UI Element" action and add it
              • Click "PICK"
              • Use Cmd+tab to navigate over to Pro Tools and now click on the "Automation Follows Edit" button.
              • That's it, your macro will now simulate clicking that button.
              1. These two videos show you how to learn how to do more complex UI automation yourself:

                1. Or - use the built-in command that does exactly what you need :)

                  To more easily find commands you might be missing, just hit "Cmd+K" while in SoundFlow. This brings up command search. Then write "Automation Follows Edit" and it'll take you directly to the command, with 3 options for either setting it to on, off or toggling it.

                  ReplySolution
                  1. D’oh!
                    Didn’t even know there was a built on command for this.