Anyone know how to make a toggle on/off 'Automation Follows Edit' button for SoundFlow on Pro Tools?
- Chris Shaw @Chris_Shaw2024-03-25 16:07:01.058Z
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}`,"")
- GIn reply toGary_Keane⬆:Gary Keane @Gary_Keane
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
- GGary Keane @Gary_Keane
Ah, I just re-read the code! Ignore that
- In reply toGary_Keane⬆:Christian Scheuer @chrscheuer2024-03-25 16:42:29.163Z
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.
Christian Scheuer @chrscheuer2024-03-25 16:42:59.604Z
These two videos show you how to learn how to do more complex UI automation yourself:
Christian Scheuer @chrscheuer2024-03-25 16:44:20.779Z
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.
Chris Shaw @Chris_Shaw2024-03-25 20:22:10.519Z
D’oh!
Didn’t even know there was a built on command for this.