No internet connection
  1. Home
  2. How to

Select all tracks based on a selected clip

By Andrew Sherman @Andrew_Sherman
    2021-08-30 09:30:31.432Z

    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.

    • 10 replies
    1. O

      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,
      Owen

      1. Yep Make the selection, turn on the ALL group then shift you selection up (or Down) via Edit > Selection > Extend Selection Up

      2. A
        In reply toAndrew_Sherman:
        Andrew Sherman @Andrew_Sherman
          2021-08-31 13:27:08.822Z

          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
          });
          
          1. 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.

            1. AAndrew Sherman @Andrew_Sherman
                2021-09-01 11:43:06.122Z

                Thanks Chris. Is there a way of deactivating the group again afterwards? I can't find it in the auto-suggestions in scripting.

                1. 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();
                  
                  1. AAndrew Sherman @Andrew_Sherman
                      2021-09-01 15:31:34.109Z

                      Excellent Chris, thank you

                      1. 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.

                        1. 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!

                          1. 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!