[Bf-extensions-cvs] [5c8de035] master: Oscurart Tools: Batch Maker support all scenes in .blend
Eugenio Pignataro
noreply at git.blender.org
Wed Mar 6 21:57:48 CET 2019
Commit: 5c8de035999e2972bf611bf3765deaa9eb5720c8
Author: Eugenio Pignataro
Date: Wed Mar 6 17:57:42 2019 -0300
Branches: master
https://developer.blender.org/rBA5c8de035999e2972bf611bf3765deaa9eb5720c8
Oscurart Tools: Batch Maker support all scenes in .blend
===================================================================
M oscurart_tools/render/batch_maker.py
===================================================================
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):
More information about the Bf-extensions-cvs
mailing list