WIP: adjust job type logic for flam 3.9

This commit is contained in:
Nathan
2026-05-01 13:52:33 -06:00
parent fd6b913a45
commit 511c1d3e39
2 changed files with 23 additions and 2 deletions
+11 -1
View File
@@ -131,6 +131,15 @@ const ffmpegIncompatibleImageFormats = new Set([
// This is not supported by this job type.
const videoFormats = ['FFMPEG', 'AVI_RAW', 'AVI_JPEG'];
// Align with Flamenco 3.9 simple_blender_render.js: overrides moved from add-on to job type.
const py_render_settings = `
import bpy
r = bpy.context.scene.render
r.use_file_extension = True
r.use_overwrite = False
r.use_placeholder = False
`;
function compileJob(job) {
print("Blender Render job submitted");
print("job: ", job);
@@ -313,11 +322,12 @@ function authorRenderTasks(settings, renderDir, renderOutput) {
argsBefore: [],
blendfile: settings.blendfile,
args: baseArgs.concat([
"--python-expr", py_render_settings.trim().split("\n").join("; "),
"--render-output", path.join(renderDir, path.basename(renderOutput)),
"--render-format", settings.format,
"--render-frame", chunk.replaceAll("-", ".."), // Convert to Blender frame range notation.
])
});
}, frameCount(chunk));
task.addCommand(command);
renderTasks.push(task);
}