Cleaning some things out
This commit is contained in:
@@ -5,6 +5,10 @@ def all_speakers(scene: bpy.types.Scene) -> list[bpy.types.Object]:
|
||||
|
||||
|
||||
def solo_speakers(scene: bpy.types.Scene, solo_group: list[bpy.types.Object]):
|
||||
"""
|
||||
Mutes all Objects not in `solo_group` and ensures all objects in this group
|
||||
are not muted.
|
||||
"""
|
||||
for speaker in all_speakers(scene):
|
||||
assert type(speaker.data) is bpy.types.Speaker
|
||||
if speaker in solo_group:
|
||||
@@ -16,6 +20,9 @@ def solo_speakers(scene: bpy.types.Scene, solo_group: list[bpy.types.Object]):
|
||||
|
||||
|
||||
def unmute_all_speakers(scene):
|
||||
"""
|
||||
Unmutes all speakers.
|
||||
"""
|
||||
for speaker in all_speakers(scene):
|
||||
assert type(speaker.data) is bpy.types.Speaker
|
||||
speaker.data.muted = False
|
||||
|
||||
Reference in New Issue
Block a user