WIP: adjust job type logic for flam 3.9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user