No internet connection
  1. Home
  2. How to

Show/hide tracks based on name

By Manne @Manne
    2020-11-13 12:34:10.137Z

    Hi!

    I'm trying to wrap my head around the "Show only tracks with name" for Pro Tools.

    I'm not shure what it's intended to do but what I would like is to hide all tracks exept the ones that contain a string of text in the track name, inclusing folder tracks. For me it seem kind of random what it does. Sometimes working as expected sometimes not.

    Preferably I would like to do this without typing. My idea is to create a surface with different buttons for all my food groups in PT. So each button would show all tracks within a specific food group including folder track and VCA, and hide all other tracks.

    I've looked around a little bit for packages that can do this but I find it very hard to search the store and get detailed information. Hope somebody could help me out.

    (I'm aware that memory locations can be used for this but I find it too time consuming to redo them every time I add a new track.)

    Thanks in advance!

    /Manne

    • 4 replies
    1. Kitch Membery @Kitch2020-11-13 22:21:20.874Z2020-11-13 22:32:51.092Z

      Hi Manne,

      Something like this would do the trick;

      sf.ui.proTools.appActivateMainWindow();
      sf.ui.proTools.mainWindow.invalidate()
      
      const filterString = 'Video';
      
      const tracksWithString = sf.ui.proTools.invalidate().trackNames.filter(item => item.indexOf(filterString) >=0);;
      
      sf.ui.proTools.trackVisibilityHideAll();
      
      sf.ui.proTools.trackShowByName({
          names: tracksWithString,
      });
      
      1. VVanessa Garde @Vanessa_Garde
          2023-06-23 05:19:43.359Z

          Curious to know how to do it with an array of multiple tracks too. Thx!

          1. VVanessa Garde @Vanessa_Garde
              2023-06-23 06:00:56.917Z

              Responding myself... Found the solution here:
              Show Hide Track TOGGLE #post-8

              Thanks!

          2. M
            In reply toManne:
            Manne @Manne
              2020-11-19 09:08:07.748Z

              Thanks a lot! And if I want to display more than one track? Specifically I would like to show a foldertrack and all its children. And pssibly in some instances also another specific track outside the folder.

              Best,
              Manne