Simple-blender-render job: use absolute path for render_output_path
Blender cannot be told to only allow absolute path for an RNA property (of type `string`, subtype `dir_path`), so as a workaround the final `render_output_path` is now using `bpy.path.abspath()` to make the path absolute. This has as advantage that the render output path can be defined by artists as a blendfile-relative path, and that it'll be resolved when submitting the blend file.
This commit is contained in:
parent
764973f116
commit
370f935f65
@ -15,7 +15,7 @@ const JOB_TYPE = {
|
|||||||
{ key: "add_path_components", type: "int32", required: true, default: 0, propargs: {min: 0, max: 32}, visible: "submission",
|
{ 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"},
|
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,
|
{ key: "render_output_path", type: "string", subtype: "file_path", editable: false,
|
||||||
eval: "str(Path(settings.render_output_root) / last_n_dir_parts(settings.add_path_components) / jobname / '{timestamp}' / '######')",
|
eval: "str(Path(bpy.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"},
|
description: "Final file path of where render output will be saved"},
|
||||||
|
|
||||||
// Automatically evaluated settings:
|
// Automatically evaluated settings:
|
||||||
|
Loading…
Reference in New Issue
Block a user