Much refactoring

This seems to work, needs more testing
This commit is contained in:
Jamie Hardt
2020-09-20 13:46:03 -07:00
parent 8e695140fb
commit b4b3f071ae
3 changed files with 330 additions and 280 deletions

View File

@@ -0,0 +1,18 @@
def all_speakers(scene):
return [obj for obj in scene.objects if obj.type == 'SPEAKER']
def solo_speakers(scene, solo_group):
for speaker in all_speakers(scene):
if speaker in solo_group:
speaker.data.muted = False
else:
speaker.data.muted = True
speaker.data.update_tag()
def unmute_all_speakers(scene):
for speaker in all_speakers(scene):
speaker.data.muted = False
speaker.data.update_tag()