diff options
author | Eugenio Pignataro <info@oscurart.com.ar> | 2019-03-06 23:57:42 +0300 |
---|---|---|
committer | Eugenio Pignataro <info@oscurart.com.ar> | 2019-03-06 23:57:42 +0300 |
commit | 5c8de035999e2972bf611bf3765deaa9eb5720c8 (patch) | |
tree | a32c9af0c1de776e2760ce2e132f9ef5218e2c78 /oscurart_tools | |
parent | 44604c923b2f40bca4efc32e6d2fb483808e5613 (diff) |
Oscurart Tools: Batch Maker support all scenes in .blend
Diffstat (limited to 'oscurart_tools')
-rw-r--r-- | oscurart_tools/render/batch_maker.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/oscurart_tools/render/batch_maker.py b/oscurart_tools/render/batch_maker.py index 5dd007e3..99780aec 100644 --- a/oscurart_tools/render/batch_maker.py +++ b/oscurart_tools/render/batch_maker.py @@ -27,10 +27,12 @@ def batchMaker(BIN): with open(SHFILE, "w") as FILE: if not BIN: - FILE.writelines(r"'%s' -b '%s' --python-text Text -a" % (bpy.app.binary_path,bpy.data.filepath)) + for scene in bpy.data.scenes: + FILE.writelines("'%s' -b '%s' --scene %s --python-text Text -a \n" % (bpy.app.binary_path,bpy.data.filepath,scene.name)) else: - FILE.writelines(r"blender -b '%s' --python-text Text -a" % (bpy.data.filepath)) - + for scene in bpy.data.scenes: + FILE.writelines("blender -b '%s' --scene %s --python-text Text -a \n" % (bpy.data.filepath,scene.name)) + class oscBatchMaker (bpy.types.Operator): |