No internet connection
  1. Home
  2. How to

Show and Hide all Sends

By Chris Testa @Chris_Testa
    2021-10-01 21:32:48.878Z

    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?

    • 2 replies
    1. samuel henriques @samuel_henriques
        2021-10-02 18:59:36.686Z

        Hey 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")
        }
        
        1. C
          In reply toChris_Testa:
          Chris Testa @Chris_Testa
            2021-10-02 20:45:40.141Z

            That worked. Thanks!