diff options
Diffstat (limited to 'power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py')
-rw-r--r-- | power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py b/power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py index a6b885cc..b324333a 100644 --- a/power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py +++ b/power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py @@ -18,13 +18,13 @@ import bpy import os.path as osp import sys +if __name__ == "__main__": + for strip in bpy.context.scene.sequence_editor.sequences_all: + if strip.type == "META": + continue + if strip.type != "SOUND": + strip.mute = True -for strip in bpy.context.scene.sequence_editor.sequences_all: - if strip.type == "META": - continue - if strip.type != "SOUND": - strip.mute = True - -path = sys.argv[-1] -ext = osp.splitext(path)[1][1:].upper() -bpy.ops.sound.mixdown(filepath=path, check_existing=False, container=ext, codec=ext) + path = sys.argv[-1] + ext = osp.splitext(path)[1][1:].upper() + bpy.ops.sound.mixdown(filepath=path, check_existing=False, container=ext, codec=ext) |