def channelbox_command_muteAll(box, menuItem, key, *args): with sysCmd.Undo(): cmds.channelBox(box.channelbox, e=1, exe=("mute \"#P.#A\";", 0))