Select all tracks based on a selected clip
In Pro Tools, I'm trying to find a quick way of selecting all tracks based on an initial clip selection.
For example. select first clip on one track, then I currently manually shift click in the top area above the tracks, which selects all the tracks. Then typically I shuffle delete the section or duplicate that in order to adjust an edit further.
Is there a way to automate the selection of multiple tracks like that? I normally have "link timeline and edit selection on" if that is any help.


Linked from:
- OOwen Granich-Young @Owen_Granich_Young
Any reason not to just create a ProTools group? That would fulfill these needs. Or if it's littreally every track you want cut there, turning on the ALL group.
Bests,
OwenChris Shaw @Chris_Shaw2021-08-31 01:30:23.051Z
Yep Make the selection, turn on the ALL group then shift you selection up (or Down) via Edit > Selection > Extend Selection Up
- AIn reply toAndrew_Sherman⬆:Andrew Sherman @Andrew_Sherman
Thanks for the suggestions guys. This is almost there, is there a way of selecting the markers lane at the top to include that in the selection as well? Sometimes I need to shuffle delete this to keep the structure of the project.
And separate question, is there a way of deactivating the group again afterwards?
sf.ui.proTools.appActivate; sf.ui.proTools.groupsActivate({ groupNames: ["<ALL>"], }); sf.ui.proTools.menuClick({ menuPath: ["Edit","Selection","Extend Edit Down to Members"], }); sf.ui.proTools.menuClick({ menuPath: ["Edit","Selection","Extend Edit Up to Members"], // to include Master track });
Chris Shaw @Chris_Shaw2021-08-31 18:57:41.093Z
As far as I know there is no way to directly click on the marker bar (the same holds true for other timeline rulers and the clip fx window. The best way to get there is to use Mouse Click Relevant to UI Element and use the center of the main window as the UI element. You can use your mouse coordinates to get the x axis then figure out the y coordinate. The main issue with this method is that you have to make sure that the number of rulers shown is consistent otherwise the y coordinate won't be correct.
- AAndrew Sherman @Andrew_Sherman
Thanks Chris. Is there a way of deactivating the group again afterwards? I can't find it in the auto-suggestions in scripting.
Chris Shaw @Chris_Shaw2021-09-01 15:27:28.795Z
function getGroup(grpName) { var grp = sf.ui.proTools.mainWindow.groupListView.children.whoseRole.is("AXRow").filter(r => r.children.whoseRole.is("AXCell").allItems[1].buttons.whoseTitle.endsWith(' - ' + grpName).first.exists)[0]; if (!grp) throw `Could not find group "${grpName}"`; return grp; } getGroup('<ALL>').children.allItems[1].buttons.first.elementClick();
- AAndrew Sherman @Andrew_Sherman
Excellent Chris, thank you
Chris Shaw @Chris_Shaw2021-09-01 15:37:09.444Z
Keep in mind that the above code will toggle the group on/off state. It doesn't check if it's active or not - it just clicks it.
- AAna del Sol Perez Zamora @Ana_del_Sol_Perez_Za
Hi Chris!
How would be the modified script in order to check if the group is on/off? I have tried to insert a if command where if the group is on do not click on it.
Thanks!
- AAna del Sol Perez Zamora @Ana_del_Sol_Perez_Za
Just replying to me haha, I have found this question which answers mine and gives a great script which works perfectly :
I hope this helps!