This would be the equivalent of clicking on the solo button in the main counter section of the PT header (under the start - end - length display), that clears all solos. I don't do it much, but I'm sure it would be useful to have a similar command to clear all mutes.
- Christian Scheuer @chrscheuer2018-10-29 21:33:37.017Z
Agreed that would be nice to have built in.
For now you can do it with this custom script:
sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.mainWindow.counterDisplay.mouseClickElement({ relativePosition: { x: 299, y: 67 } });
- SIn reply tosbiss⬆:Steve Bissinger @sbiss2018-10-29 21:35:03.869Z
Wow! Now THAT is a fast fix! Thanks :)
Christian Scheuer @chrscheuer2018-10-29 21:35:54.470Z
Haha :) Yay!!
- In reply tosbiss⬆:Christian Scheuer @chrscheuer2018-10-29 21:44:28.819Z
And here's the equivalent for the clear mutes.
sf.ui.proTools.appActivateMainWindow(); var muteBtn = sf.ui.proTools.selectedTrack.buttons.getByTitle('Mute'); var wasMuted = muteBtn.value.value === 'on state'; if (!wasMuted) { muteBtn.elementClick(); for (var i = 0;; i++) { sf.wait({ intervalMs: 50 }); if (muteBtn.invalidate().value.value === 'on state') break; if (i == 9) throw 'Could not mute selected track to allow us to unmute all'; } } muteBtn.mouseClickElement({ isOption: true });
Ingo Pusswald @ingo_luftrausch
As far as I could replicate, "Clear Mutes" works only if at least one audio track is selected, doesn't matter with one...
Christian Scheuer @chrscheuer2019-08-21 20:42:51.289Z
@Misch_Tonmeister yes your analysis sounds right.
- SIn reply tosbiss⬆:Steve Bissinger @sbiss2018-10-29 21:47:47.728Z
Awesome! Thanks!
FYI, everything has been very stable for me. Still loving the marker navigation, among many other things :)
Christian Scheuer @chrscheuer2018-10-29 21:52:42.267Z
That's wonderful to hear - thanks for sharing that :)
- JIn reply tosbiss⬆:Jon Horton @Jon_Horton
Hey Christian. This is a great script, but as you might know, it does not work if something is covering the main counter (like a plugin). I just tried it to confirm. It seems this could be solved if the solo button in the main counter could be viewed as its own UI element, but I haven't found a way to make that happen. Let me know if you have a solution. Thanks.
Christian Scheuer @chrscheuer2023-01-14 15:27:30.204Z
Hi Jon,
I think the only solution, for now, would be to hide or move any floating windows before invoking the command.