Hi,
is there a way to toggle activation on a single group?
Thx
Linked from:
- Christian Scheuer @chrscheuer2019-09-13 20:39:01.023Z
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?
Ingo Pusswald @ingo_luftrausch
2019.6
Would be awesome to have that feature for mixing features with large track counts 200+
Ingo Pusswald @ingo_luftrausch
I tried with all UI mouse click elements, but could not toggle. Every time after the first click error message...
- In reply toingo_luftrausch⬆:Samuel Škubla @Samuel_Skubla
Hello, I just want to ask is there any update about this function?
Thanks
Christian Scheuer @chrscheuer2020-04-02 17:47:18.766Z
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");
Samuel Škubla @Samuel_Skubla
thank you very much!
- In reply tochrscheuer⬆:
Samuel Škubla @Samuel_Skubla
Is there way to check if defined group is active or not?
Christian Scheuer @chrscheuer2020-10-15 09:59:01.209Z
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) :)
- In reply toingo_luftrausch⬆:Erik Griekspoor @Erik_Griekspoor
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?