What would be the best way to toggle bypass of all inserts on a selected track? I've found a few things on the forum to toggle between inactive/active, but looking specifically to bypass all. Thanks!
- Raphael Sepulveda @raphaelsepulveda2022-02-05 21:47:03.858Z
Pro Tools has a shortcut to toggle bypass on all inserts on the selected tracks. We can leverage that to make sure that it bypasses all inserts if SoundFlow can detect there are unbypassed inserts in the selected track. Something short and sweet like this:
sf.ui.proTools.appActivateMainWindow(); if (sf.ui.proTools.selectedTrack.invalidate().insertSelectorButtons.some(btn => !btn.value.value)) { sf.keyboard.press({ keys: "shift+a", repetitions: 2 }); }
Ian Bodzasi @Ian_Bodzasi
Thanks Raphael! Why do I always forget about that key command? haha...every time I learn something new at this age, I think it pushes something else out :)
Raphael Sepulveda @raphaelsepulveda2022-02-05 23:07:46.976Z
No problem! Hahah, yeah I don't blame you, PT has so many shortcuts and features!
- DIn reply toIan_Bodzasi⬆:David Archer @David_Archer
I can't seem to get this to work. Whatever the track I have selected (focused), running this command snaps over to the very first track in the mix window. That track's insert button flashes briefly, but the insert does not actually bypass. Is there a way to get the command to address the selected track and 'toggle' vs what seems like a 'pulse' command? I'm a newbie and using a ton of your utilities, Raphael, just can't seem to get this to play ball!
ThanksRaphael Sepulveda @raphaelsepulveda2024-11-13 04:10:43.447Z
Hey @David_Archer, welcome to SoundFlow!
Seems like things have changed with PT since I originally wrote this.
Give this version a try:sf.ui.proTools.appActivate(); sf.ui.proTools.mainWindow.invalidate(); if (sf.ui.proTools.selectedTrack.insertSelectorButtons.some(btn => !btn.value.value)) { sf.keyboard.press({ keys: "shift+a" }); }