Hi!
Is there a way to with one command in ProTools "Show all tracks" and then "Hide inactive tracks"?
Thanks!
Christian Scheuer @chrscheuer2019-09-19 22:59:52.576ZThis 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();- TTom van Heesch @Tom_van_Heesch
Awesome, thank you!
- OIn reply toTom_van_Heesch⬆:olafnoise @olafnoise
Hi,
I like this one
but is there a way to toggle between the two displays?
thanks!!
Christian Scheuer @chrscheuer2019-09-22 10:24:26.351ZHi @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?
- Oolafnoise @olafnoise
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
Christian Scheuer @chrscheuer2019-09-23 09:27:58.020ZNo worries :)
Here's the general code template to use for making one command toggle between two different things:
https://forum.soundflow.org/-1001#post-11I'll get you a full script later
Christian Scheuer @chrscheuer2019-09-23 09:46:48.234ZThis 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"], }); }- Oolafnoise @olafnoise
Thanks a lot Christian
sorry about my first reply (I deleted it)
actually it freezed one time only
working great!!!
- PIn reply toTom_van_Heesch⬆:Paul Urmson @Paul_Urmson
What would the script be to just Hide Inactive tracks?
Christian Scheuer @chrscheuer2020-04-10 20:30:12.636ZHi Paul.
This should do:
var popupMenu = sf.ui.proTools.trackOpenListPopupMenu().popupMenu; popupMenu.menuClickPopupMenu({ menuPath: ["Hide","Inactive Tracks"], });- PPaul Urmson @Paul_Urmson
Thank you kindly Christian.