Hi, I was going to respond to your previous post about muting tracks, but I see you deleted that. I think it is still an interesting question. Your example was:
#name Mute
if 4 mode == :Play
1, 2, 3 mode = Mute
else
1, 2, 3 mode = Play
I think we'll need to talk through your workflow a little more to know exactly how to write this script, but I can give you some examples. To cause a list of tracks to go into Mute at the same time do this:
in 1,2,3 MuteOn
To bring them out of Mute do this:
in 1,2,3 MuteOff
or this
in 2,3,3 Play
Play will do more than just MuteOff, but if the track isn't doing anything besides being muted, then Play and MuteOff are the same. In scripts I usually use MuteOn and MuteOff instead of just Mute, because Mute is a toggle function and what it does depends on the current state of the track, so if for example if tracks 1,2,3 start in Mute, then you manually unmute track 2, and run this script:
in 1,2,3 Mute
This will unmute tracks 1 and 3 but put 2 back into Mute. If you know you need all of the tracks to be in one state or the other then I use the On and Off variants for Mute.
From your example, I think what you want is this:
"if track 4 is in Play mode, then mute tracks 1,2,3
if track 4 is not in Play mode then Unmute tracks 1,2,3"
The script for that would be:
in 4 {
if mode == :Play {
in 1,2,3 MuteOn
}
else {
in 1,2,3 MuteOff
}
}