WIP: Initial version of a single-frame job compiler #104189

Closed
k8ie wants to merge 26 commits from k8ie/flamenco:single-frame into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit e51a2aedff - Show all commits

View File

@ -88,8 +88,8 @@ function renderOutputPath(job) {
function tileChunker(tile_size) { function tileChunker(tile_size) {
let tiles = []; let tiles = [];
const rows = Math.floor(100 / tile_size); const rows = Math.ceil(100 / tile_size);
const columns = Math.floor(100 / tile_size); const columns = Math.ceil(100 / tile_size);
for (let row = 0; row < rows; row++) { for (let row = 0; row < rows; row++) {
for (let column = 0; column < columns; column++) { for (let column = 0; column < columns; column++) {
tiles.push({"row": row, "column": column}); tiles.push({"row": row, "column": column});
@ -163,6 +163,8 @@ bpy.context.scene.render.resolution_percentage = ${settings.resolution_percentag
bpy.context.scene.render.use_compositing = True bpy.context.scene.render.use_compositing = True
bpy.context.scene.use_nodes = True bpy.context.scene.use_nodes = True
bpy.context.scene.view_layers[0].use = False bpy.context.scene.view_layers[0].use = False
if 'Render Layers' in bpy.context.scene.node_tree.nodes:
bpy.context.scene.node_tree.nodes.remove(bpy.context.scene.node_tree.nodes['Render Layers'])
bpy.context.scene.render.image_settings.file_format = 'OPEN_EXR_MULTILAYER' bpy.context.scene.render.image_settings.file_format = 'OPEN_EXR_MULTILAYER'
bpy.context.scene.render.filepath = basepath + "MERGED" bpy.context.scene.render.filepath = basepath + "MERGED"