No internet connection
  1. Home
  2. How to

Group activation/de-activation Toggle

By Ingo Pusswald @ingo_luftrausch
    2019-09-13 19:28:57.945Z

    Hi,
    is there a way to toggle activation on a single group?

    Thx

    Solved in post #6, click to view
    • 9 replies
    1. There's no built in way to do it, but we could look to see if we can do it by script. Which version of PT are you on?

      1. Ingo Pusswald @ingo_luftrausch
          2019-09-13 20:53:54.112Z

          2019.6

          Would be awesome to have that feature for mixing features with large track counts 200+

          1. Ingo Pusswald @ingo_luftrausch
              2019-09-13 20:58:07.536Z

              I tried with all UI mouse click elements, but could not toggle. Every time after the first click error message...

          2. In reply toingo_luftrausch:
            Samuel Škubla @Samuel_Skubla
              2020-04-02 17:34:03.201Z

              Hello, I just want to ask is there any update about this function?

              Thanks

              1. Hi Samuel.

                This script should toggle the active state of "Group 2" in 2020.3:

                
                function toggleGroupActive(groupName) {
                    sf.ui.proTools.mainWindow.groupListView.childrenByRole('AXRow').map(r => ({
                        groupName: r.childrenByRole('AXCell').allItems[1].buttons.first.title.value.split(/-\s/)[1],
                        btn: r.childrenByRole('AXCell').allItems[1].buttons.first,
                        row: r,
                    })).filter(g => g.groupName === groupName)[0].btn.elementClick();
                }
                
                toggleGroupActive("Group 2");
                
                ReplySolution
                1. Samuel Škubla @Samuel_Skubla
                    2020-04-02 18:50:19.197Z

                    thank you very much!

                    1. In reply tochrscheuer:
                      Samuel Škubla @Samuel_Skubla
                        2020-10-15 08:19:04.821Z

                        Is there way to check if defined group is active or not?

                        1. Hi Samuel,
                          Please ask this in a new thread so we can better manage which threads have been answered (otherwise I'll forget to answer you) :)

                    2. In reply toingo_luftrausch:
                      Erik Griekspoor @Erik_Griekspoor
                        2020-11-13 13:28:33.621Z

                        This script use to work for me, but now I get the error: TypeError: Cannot read property 'btn' of undefined
                        (Toggle Group Amb_A line 3)
                        How can I fix that?