From 5fbdc388ad4ab30da889872138fa5b1b6ef5d8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 1 Jul 2022 13:36:23 +0200 Subject: [PATCH] Job compiler: tweak settings visibility of `simple-blender-render` In the `simple-blender-render` job type settings, hide the `chunk_size` setting from the web frontend, and show the `blendfile` setting instead. The actual blend file being rendered is important to know, whereas the chunk size can be inferred from the task names anyway. --- .../manager/job_compilers/scripts/simple_blender_render.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/manager/job_compilers/scripts/simple_blender_render.js b/internal/manager/job_compilers/scripts/simple_blender_render.js index bd5f6f59..0d8a54c7 100644 --- a/internal/manager/job_compilers/scripts/simple_blender_render.js +++ b/internal/manager/job_compilers/scripts/simple_blender_render.js @@ -6,7 +6,8 @@ const JOB_TYPE = { // Settings for artists to determine: { key: "frames", type: "string", required: true, eval: "f'{C.scene.frame_start}-{C.scene.frame_end}'", description: "Frame range to render. Examples: '47', '1-30', '3, 5-10, 47-327'" }, - { key: "chunk_size", type: "int32", default: 1, description: "Number of frames to render in one Blender render task" }, + { key: "chunk_size", type: "int32", default: 1, description: "Number of frames to render in one Blender render task", + visible: "submission" }, // 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", @@ -19,7 +20,7 @@ const JOB_TYPE = { // Automatically evaluated settings: { key: "blender_cmd", type: "string", default: "{blender}", visible: "hidden" }, - { key: "blendfile", type: "string", required: true, description: "Path of the Blend file to render", visible: "hidden" }, + { key: "blendfile", type: "string", required: true, description: "Path of the Blend file to render", visible: "web" }, { key: "fps", type: "float", eval: "C.scene.render.fps / C.scene.render.fps_base", visible: "hidden" }, { key: "images_or_video",