diff options
Diffstat (limited to 'power_sequencer/scripts')
-rw-r--r-- | power_sequencer/scripts/BPSProxy/setup.py | 63 | ||||
-rw-r--r-- | power_sequencer/scripts/BPSRender/bpsrender/bscripts/mixdown.py | 18 | ||||
-rw-r--r-- | power_sequencer/scripts/BPSRender/setup.py | 63 |
3 files changed, 73 insertions, 71 deletions
diff --git a/power_sequencer/scripts/BPSProxy/setup.py b/power_sequencer/scripts/BPSProxy/setup.py index 22aacf60..99453b04 100644 --- a/power_sequencer/scripts/BPSProxy/setup.py +++ b/power_sequencer/scripts/BPSProxy/setup.py @@ -22,34 +22,35 @@ def readme(): return f.read() -setup( - name="bpsproxy", - version="0.1.3.post1", - description="Blender Power Sequencer proxy generator tool", - long_description=readme(), - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Console", - "Intended Audience :: End Users/Desktop", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Natural Language :: English", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3", - "Topic :: Multimedia :: Video", - "Topic :: Utilities", - ], - url="https://gitlab.com/razcore/bpsproxy", - keywords="blender proxy vse sequence editor productivity", - author="Răzvan C. Rădulescu", - author_email="razcore.art@gmail.com", - license="GPLv3", - packages=["bpsproxy"], - install_requires=["tqdm"], - zip_safe=False, - entry_points={"console_scripts": ["bpsproxy=bpsproxy.__main__:main"]}, - include_package_data=True, -) +if __name__ == "__main__": + setup( + name="bpsproxy", + version="0.1.3.post1", + description="Blender Power Sequencer proxy generator tool", + long_description=readme(), + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Natural Language :: English", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3", + "Topic :: Multimedia :: Video", + "Topic :: Utilities", + ], + url="https://gitlab.com/razcore/bpsproxy", + keywords="blender proxy vse sequence editor productivity", + author="Răzvan C. Rădulescu", + author_email="razcore.art@gmail.com", + license="GPLv3", + packages=["bpsproxy"], + install_requires=["tqdm"], + zip_safe=False, + entry_points={"console_scripts": ["bpsproxy=bpsproxy.__main__:main"]}, + include_package_data=True, + ) 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) diff --git a/power_sequencer/scripts/BPSRender/setup.py b/power_sequencer/scripts/BPSRender/setup.py index 4c4a74b9..1f17b9ba 100644 --- a/power_sequencer/scripts/BPSRender/setup.py +++ b/power_sequencer/scripts/BPSRender/setup.py @@ -22,34 +22,35 @@ def readme(): return f.read() -setup( - name="bpsrender", - version="0.1.40.post1", - description="Blender Power Sequencer Renderer", - long_description=readme(), - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Console", - "Intended Audience :: End Users/Desktop", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Natural Language :: English", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Topic :: Text Processing :: Linguistic", - "Topic :: Multimedia :: Video", - "Topic :: Utilities", - ], - url="https://gitlab.com/razcore/BPSRender", - keywords="blender render parallel multiprocess speedup utility" " productivty", - author="Răzvan C. Rădulescu", - author_email="razcore.art@gmail.com", - license="GPLv3", - packages=["bpsrender"], - install_requires=["tqdm"], - zip_safe=False, - entry_points={"console_scripts": ["bpsrender=bpsrender.__main__:main"]}, - include_package_data=True, -) +if __name__ == "__main__": + setup( + name="bpsrender", + version="0.1.40.post1", + description="Blender Power Sequencer Renderer", + long_description=readme(), + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Natural Language :: English", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Topic :: Text Processing :: Linguistic", + "Topic :: Multimedia :: Video", + "Topic :: Utilities", + ], + url="https://gitlab.com/razcore/BPSRender", + keywords="blender render parallel multiprocess speedup utility" " productivty", + author="Răzvan C. Rădulescu", + author_email="razcore.art@gmail.com", + license="GPLv3", + packages=["bpsrender"], + install_requires=["tqdm"], + zip_safe=False, + entry_points={"console_scripts": ["bpsrender=bpsrender.__main__:main"]}, + include_package_data=True, + ) |