Show and Hide all Sends
By Chris Testa @Chris_Testa
I see that there are built in commands to show and hide the send groups (A-E and F-J) separately. I tried to combine those in a couple of different ways to see if I can get both of them to show and hide with one button but I've been unsuccessful. Is there an easy way to do this?
samuel henriques @samuel_henriquesHey Chris
This should do it.
function setWindowViews(targetValue) { let views = ["Sends A-E", "Sends F-J"] views.forEach(view => { sf.ui.proTools.menuClick({ menuPath: ["View", "Edit Window Views", view], targetValue: targetValue }) sf.ui.proTools.menuClick({ menuPath: ["View", "Mix Window Views", view], targetValue: targetValue }) }) } globalState.toggleViews = !globalState.toggleViews if (globalState.toggleViews) { setWindowViews("Enable") } else { setWindowViews("Disable") }