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.
- samuel henriques @samuel_henriques
Hey @Andrew_Sherman,
Could you share the script you are using, just to check the best way to do it in your case?
- AAndrew Sherman @Andrew_Sherman
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!
- In reply toAndrew_Sherman⬆:Chris Shaw @Chris_Shaw2021-02-03 16:25:02.850Z
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 toDisable
to Unmute orToggle
to toggle the mutes.//CS//
- AAndrew Sherman @Andrew_Sherman
Thank you!