No internet connection
  1. Home
  2. How to

Hide inactive tracks

By Tom van Heesch @Tom_van_Heesch
    2019-09-19 12:13:01.990Z

    Hi!

    Is there a way to with one command in ProTools "Show all tracks" and then "Hide inactive tracks"?

    Thanks!

    Solved in post #2, click to view
    • 11 replies
    1. This macro does it:

      As a script:

      sf.ui.proTools.trackListMenu({
          menuItemName: "Show All Tracks",
      });
      
      var popupMenu = sf.ui.proTools.trackOpenListPopupMenu().popupMenu;
      popupMenu.menuClickPopupMenu({
          menuPath: ["Hide","Inactive Tracks"],
      });
      
      sf.ui.proTools.appActivateMainWindow();
      
      ReplySolution
      1. TTom van Heesch @Tom_van_Heesch
          2019-09-20 07:38:39.606Z

          Awesome, thank you!

        • O
          In reply toTom_van_Heesch:
          olafnoise @olafnoise
            2019-09-22 10:23:45.508Z

            Hi,
            I like this one
            but is there a way to toggle between the two displays?
            thanks!!

            1. Hi @olafnoise.

              Which two displays do you have in mind to toggle between? Can you try to explain a bit more so I'm sure I understand you?

              1. Oolafnoise @olafnoise
                  2019-09-22 10:29:33.137Z

                  Sorry to be unclear
                  just showing all tracks with a hit and then hiding back the inactive tracks with a second hit on the same button
                  thanks
                  Jean

                  1. No worries :)

                    Here's the general code template to use for making one command toggle between two different things:
                    https://forum.soundflow.org/-1001#post-11

                    I'll get you a full script later

                    1. This should work (untested)

                      
                      globalState.showAllTracksState = !globalState.showAllTracksState;
                      if (globalState.showAllTracksState) {
                          sf.ui.proTools.trackListMenu({
                              menuItemName: "Show All Tracks",
                          });
                      } else {
                          var popupMenu = sf.ui.proTools.trackOpenListPopupMenu().popupMenu;
                          popupMenu.menuClickPopupMenu({
                              menuPath: ["Hide", "Inactive Tracks"],
                          });
                      }
                      
                      1. Oolafnoise @olafnoise
                          2019-09-23 10:47:14.034Z

                          Thanks a lot Christian

                          sorry about my first reply (I deleted it)

                          actually it freezed one time only

                          working great!!!

                • P
                  In reply toTom_van_Heesch:
                  Paul Urmson @Paul_Urmson
                    2020-04-10 20:16:32.744Z

                    What would the script be to just Hide Inactive tracks?

                    1. Hi Paul.

                      This should do:

                      var popupMenu = sf.ui.proTools.trackOpenListPopupMenu().popupMenu;
                      popupMenu.menuClickPopupMenu({
                          menuPath: ["Hide","Inactive Tracks"],
                      });
                      
                      1. PPaul Urmson @Paul_Urmson
                          2020-04-11 17:58:07.059Z

                          Thank you kindly Christian.