Distributed rendering of single images #104327

Merged
David Zhang merged 22 commits from David-Zhang-10/flamenco:single-image-render into main 2024-09-03 06:47:49 +02:00
Showing only changes of commit 3dd46d1c00 - Show all commits

View File

@ -149,7 +149,8 @@ function authorRenderTasks(settings, renderDir, renderOutput) {
const task = author.Task(`render-${border[0]}-${border[1]}`, "blender"); const task = author.Task(`render-${border[0]}-${border[1]}`, "blender");
let pythonExpr = `import bpy let pythonExpr = `import bpy
render = bpy.context.scene.render scene = bpy.context.scene
render = scene.render
render.image_settings.file_format = 'OPEN_EXR_MULTILAYER' render.image_settings.file_format = 'OPEN_EXR_MULTILAYER'
render.use_compositing = False render.use_compositing = False
overscan = 16 overscan = 16
@ -184,6 +185,8 @@ function authorMergeTask(settings, renderDir, renderOutput) {
let pythonExpr = `import bpy let pythonExpr = `import bpy
render = bpy.context.scene.render render = bpy.context.scene.render
render.resolution_x = ${settings.resolution_x}
render.resolution_y = ${settings.resolution_y}
bpy.context.scene.use_nodes = True bpy.context.scene.use_nodes = True
render.use_compositing = True render.use_compositing = True
node_tree = bpy.context.scene.node_tree node_tree = bpy.context.scene.node_tree