Distributed rendering of single images #104327
@ -0,0 +1,23 @@
|
||||
const JOB_TYPE = {
|
||||
label: "Single Image Render",
|
||||
description: "Distributed rendering of a single image.",
|
||||
settings: [
|
||||
// Settings for artists to determine:
|
||||
{ key: "tile_size_x", type: "int32", default: 64, description: "Tile size in pixels for the X axis" },
|
||||
{ key: "tile_size_y", type: "int32", default: 64, description: "Tile size in pixels for the Y axis" },
|
||||
|
||||
// render_output_root + add_path_components determine the value of render_output_path.
|
||||
{ key: "render_output_root", type: "string", subtype: "dir_path", required: true, visible: "submission",
|
||||
description: "Base directory of where render output is stored. Will have some job-specific parts appended to it"},
|
||||
{ key: "add_path_components", type: "int32", required: true, default: 0, propargs: {min: 0, max: 32}, visible: "submission",
|
||||
description: "Number of path components of the current blend file to use in the render output path"},
|
||||
{ key: "render_output_path", type: "string", subtype: "file_path", editable: false,
|
||||
eval: "str(Path(abspath(settings.render_output_root), last_n_dir_parts(settings.add_path_components), jobname, '{timestamp}', '######'))",
|
||||
description: "Final file path of where render output will be saved"},
|
||||
]
|
||||
};
|
||||
|
||||
function compileJob(job) {
|
||||
print("Single Image Render job submitted");
|
||||
print("job: ", job);
|
||||
}
|
Loading…
Reference in New Issue
Block a user