No internet connection
  1. Home
  2. How to

Clear Solos/Mutes

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.

Solved in post #2, click to view
  • 10 replies
  1. 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 }
    });
    
    ReplySolution
    1. S
      In reply tosbiss:

      Wow! Now THAT is a fast fix! Thanks :)

      1. Haha :) Yay!!

      2. In reply tosbiss:

        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 });
        
        1. Ingo Pusswald @ingo_luftrausch
            2019-08-21 10:53:45.693Z

            As far as I could replicate, "Clear Mutes" works only if at least one audio track is selected, doesn't matter with one...

            1. @Misch_Tonmeister yes your analysis sounds right.

          • S
            In reply tosbiss:

            Awesome! Thanks!

            FYI, everything has been very stable for me. Still loving the marker navigation, among many other things :)

            1. That's wonderful to hear - thanks for sharing that :)

            2. J
              In reply tosbiss:
              Jon Horton @Jon_Horton
                2023-01-14 05:10:05.920Z

                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.

                1. Hi Jon,

                  I think the only solution, for now, would be to hide or move any floating windows before invoking the command.