Show/hide tracks based on name
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
- 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, });
- VVanessa Garde @Vanessa_Garde
Curious to know how to do it with an array of multiple tracks too. Thx!
- VVanessa Garde @Vanessa_Garde
Responding myself... Found the solution here:
Show Hide Track TOGGLE #post-8Thanks!
- MIn reply toManne⬆:Manne @Manne
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