No internet connection
  1. Home
  2. How to

Pro Tools - Mute all selected tracks

By Andrew Sherman @Andrew_Sherman
    2021-02-03 14:53:17.468Z

    Is it possible to create a command to mute all selected tracks? So far I can only get it to work with first selected track or named tracks.

    Solved in post #3, click to view
    • 4 replies
    1. samuel henriques @samuel_henriques
        2021-02-03 16:08:17.607Z

        Hey @Andrew_Sherman,

        Could you share the script you are using, just to check the best way to do it in your case?

        1. AAndrew Sherman @Andrew_Sherman
            2021-02-03 16:23:45.626Z

            Thanks for replying Samuel,

            I figured it out. Essentially I was just trying to remap the existing shortcut (Shift M). I use various different apps in addition to Pro Tools and I'm trying to make a universal shortcut set that's consistent over all of them, and Shift Control Alt S is my preferred mute shortcut (it's in the same hand position as Shift S for solo).

            For anyone who doesn't know how to do this,

            • Make a new macro
            • Add action "Press keys"
            • Record "Shift M"
            • Press stop
            • Add new trigger
            • Type: Keyboard
            • When these apps are focused: Pro Tools
            • Record: Shift Control Alt S

            If there's a better way to do it, I'd love to hear about it!

            Reply1 LikeSolution
          • In reply toAndrew_Sherman:

            Here you go:

            sf.ui.proTools.appActivate();
            var selectedTracks = sf.ui.proTools.selectedTrackNames;
            for (var i = 0; i < selectedTracks.length; i++) {
                var track1 = sf.ui.proTools.trackGetByName({
                    name: selectedTracks[i],
                }).track;
            
                track1.trackSetMute({ targetValue: 'Enable' });
            }
            

            Change the Enable in the last line to Disable to Unmute or Toggle to toggle the mutes.

            //CS//

            1. AAndrew Sherman @Andrew_Sherman
                2021-02-03 16:25:44.705Z

                Thank you!