Script works great to mute the tracks! Could you explain what "_" and "reaper.TrackList_AdjustWindows(false)" are for, out of curiosity?
Now I need to unmute a specific send. Going off your script this worked:
Code:
for i = 0, reaper.CountSelectedTracks(0)-1 do
track = reaper.GetSelectedTrack(0, i)
sendUImute = reaper.GetTrackSendUIMute(track, 1)
if sendUImute == true then
reaper.ToggleTrackSendUIMute(track, 1)
end
reaper.TrackList_AdjustWindows(false)
end
I'm not new to coding but I've never done reaper scripting before. I'd like a way to parameterize which send gets unmuted, but not sure how to do that. This script would unmute send #1 and I could just make another for send #2 but if there's a a better way to select which send to unmute that doesn't involve copy/pasting to change the send index I'd like to know.
So my custom actions would now be
Code:
Select track by name (via Cycle Actions / reaconsole)
Your script to mute all sends
Script from above to unmute send #1
and
Code:
Select track by name (via Cycle Actions / reaconsole)
Your script to mute all sends
Script from above to unmute send #2
Thanks for your help!