Pro Tools - Select all tracks
By Steve Dawson @Steve_Dawson
Is there a macro to select all tracks in PT? I found one to deselect all, but not to select all.
- Kitch Membery @Kitch2022-03-06 03:43:00.766Z
Hi @Steve_Dawson,
There are a few ways to achieve this... This way will select all tracks that are currently visible in the Edit window.
function selectAllVisibleTracks() { sf.ui.proTools.trackDeselectAll(); const topOfEditWindow = sf.ui.proTools.mainWindow.timelineFocusButton.frame.y; const topTrack = sf.ui.proTools.visibleTrackHeaders.filter(h => h.frame.y >= topOfEditWindow)[0]; topTrack.titleButton.mouseClickElement({ isOption: true }); } selectAllVisibleTracks();
Note: because this uses a mouse click be sure to not have anything covering the first visible track in Edit window.
Hope that helps :-)
Rock on!Noah Woodburn @Noah_Woodburn
Hi there!
Is there a way to modify this so it selects hidden tracks as well?
Thanks in advance!
Ryan DeRemer @Ryan_DeRemer
Hey Noah.
This should do it. I haven't tested it with closed folders (those report their contained tracks a bit differently), but it'll select all tracks in the session.
sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.mainWindow.invalidate(); sf.ui.proTools.mainWindow.tables.whoseTitle.is("Group List").first.childrenByRole("AXRow").first.childrenByRole('AXCell').first.buttons.first.elementClick();