4 # ---------------------------BATCH MAKER------------------
10 print("PLATFORM: WINDOWS")
15 print("PLATFORM:LINUX")
20 FILENAME
= bpy
.data
.filepath
.rpartition(SYSBAR
)[-1].rpartition(".")[0]
22 SHFILE
= os
.path
.join(
23 bpy
.data
.filepath
.rpartition(SYSBAR
)[0],
26 renpath
= bpy
.context
.scene
.render
.filepath
28 with
open(SHFILE
, "w") as FILE
:
30 for scene
in bpy
.data
.scenes
:
31 FILE
.writelines("'%s' -b '%s' --scene %s --python-text Text -a \n" % (bpy
.app
.binary_path
,bpy
.data
.filepath
,scene
.name
))
33 for scene
in bpy
.data
.scenes
:
34 FILE
.writelines("blender -b '%s' --scene %s --python-text Text -a \n" % (bpy
.data
.filepath
,scene
.name
))
38 class oscBatchMaker (bpy
.types
.Operator
):
39 """It creates .bat(win) or .sh(unix) file, to execute and render from Console/Terminal"""
40 bl_idname
= "file.create_batch_maker_osc"
41 bl_label
= "Make render batch"
42 bl_options
= {'REGISTER', 'UNDO'}
44 bin
: bpy
.props
.BoolProperty(
46 name
="Use Environment Variable")
48 def execute(self
, context
):