|
| 1 | +specificationVersion: jobtemplate-2023-09 |
| 2 | +extensions: |
| 3 | +- TASK_CHUNKING |
| 4 | +name: job_specific_take_selection.c4d |
| 5 | +parameterDefinitions: |
| 6 | +- name: Cinema4DFile |
| 7 | + type: PATH |
| 8 | + objectType: FILE |
| 9 | + dataFlow: IN |
| 10 | + userInterface: |
| 11 | + control: CHOOSE_INPUT_FILE |
| 12 | + label: Cinema4D Document File |
| 13 | + groupLabel: Cinema4D Settings |
| 14 | + fileFilters: |
| 15 | + - label: Cinema4D document files |
| 16 | + patterns: |
| 17 | + - '*.c4d' |
| 18 | + - label: All Files |
| 19 | + patterns: |
| 20 | + - '*' |
| 21 | + description: The Cinema4D document file to render. |
| 22 | +- name: SubmitterIntegrationVersion |
| 23 | + type: STRING |
| 24 | + userInterface: |
| 25 | + control: HIDDEN |
| 26 | + label: Submitter Integration Version |
| 27 | + groupLabel: Cinema4D Settings |
| 28 | + description: The Cinema 4D submitter integration version. |
| 29 | +- name: Frames |
| 30 | + type: STRING |
| 31 | + userInterface: |
| 32 | + control: LINE_EDIT |
| 33 | + label: Frames |
| 34 | + groupLabel: Cinema4D Settings |
| 35 | + description: The frames to render. E.g. 1-3,8,11-15 |
| 36 | + minLength: 1 |
| 37 | +- name: ChunkSize |
| 38 | + type: INT |
| 39 | + default: 1 |
| 40 | + minValue: 1 |
| 41 | + description: | |
| 42 | + Number of frames per chunk. Use 1 for one frame per task (default). Higher values group frames into chunks to reduce per-task overhead. |
| 43 | + userInterface: |
| 44 | + control: SPIN_BOX |
| 45 | + label: Frames Per Chunk |
| 46 | + groupLabel: Cinema4D Settings |
| 47 | +- name: TargetChunkDuration |
| 48 | + type: INT |
| 49 | + default: 0 |
| 50 | + minValue: 0 |
| 51 | + description: | |
| 52 | + Target render time per chunk in seconds. Deadline Cloud will automatically adjust how many frames are grouped together to hit this target. Set to 0 to always use the fixed frames-per-chunk value. |
| 53 | + userInterface: |
| 54 | + control: SPIN_BOX |
| 55 | + label: Target Chunk Duration (Seconds) |
| 56 | + groupLabel: Cinema4D Settings |
| 57 | +- name: OutputPath |
| 58 | + type: PATH |
| 59 | + objectType: FILE |
| 60 | + dataFlow: OUT |
| 61 | + userInterface: |
| 62 | + control: CHOOSE_OUTPUT_FILE |
| 63 | + label: Default image output |
| 64 | + groupLabel: Cinema4D Settings |
| 65 | + description: Image output path |
| 66 | +- name: MultiPassPath |
| 67 | + type: PATH |
| 68 | + objectType: FILE |
| 69 | + dataFlow: OUT |
| 70 | + userInterface: |
| 71 | + control: CHOOSE_OUTPUT_FILE |
| 72 | + label: Multi-pass output path |
| 73 | + groupLabel: Cinema4D Settings |
| 74 | + description: Multi-pass image output |
| 75 | +- name: ActivateErrorChecking |
| 76 | + type: STRING |
| 77 | + userInterface: |
| 78 | + control: CHECK_BOX |
| 79 | + label: Activate automatic error checking |
| 80 | + groupLabel: Cinema4D Settings |
| 81 | + description: Fail when errors occur. |
| 82 | + default: '1' |
| 83 | + allowedValues: |
| 84 | + - '1' |
| 85 | + - '0' |
| 86 | +- name: DetailedLogging |
| 87 | + type: STRING |
| 88 | + userInterface: |
| 89 | + control: CHECK_BOX |
| 90 | + label: Enable Detailed Logging |
| 91 | + groupLabel: Cinema4D Settings |
| 92 | + description: Enable detailed Cinema 4D + Redshift renderer logging for debugging. |
| 93 | + default: '0' |
| 94 | + allowedValues: |
| 95 | + - '1' |
| 96 | + - '0' |
| 97 | +- name: UseCachedText |
| 98 | + type: STRING |
| 99 | + userInterface: |
| 100 | + control: CHECK_BOX |
| 101 | + label: Use cached text during render |
| 102 | + groupLabel: Cinema4D Settings |
| 103 | + description: Prevents incorrect or missing text by using cached fonts. If there |
| 104 | + are no fonts in the scene, this is ignored. If there are fonts in the scene, this |
| 105 | + will increase rendering time. |
| 106 | + default: '0' |
| 107 | + allowedValues: |
| 108 | + - '1' |
| 109 | + - '0' |
| 110 | +steps: |
| 111 | +- name: A |
| 112 | + parameterSpace: |
| 113 | + taskParameterDefinitions: |
| 114 | + - name: Frame |
| 115 | + type: CHUNK[INT] |
| 116 | + range: '{{Param.Frames}}' |
| 117 | + chunks: |
| 118 | + defaultTaskCount: '{{Param.ChunkSize}}' |
| 119 | + targetRuntimeSeconds: '{{Param.TargetChunkDuration}}' |
| 120 | + rangeConstraint: CONTIGUOUS |
| 121 | + stepEnvironments: |
| 122 | + - name: Cinema4D |
| 123 | + description: Runs Cinema4D in the background. |
| 124 | + variables: |
| 125 | + PYTHONUNBUFFERED: '1' |
| 126 | + SUBMITTER_INTEGRATION_VERSION: '{{Param.SubmitterIntegrationVersion}}' |
| 127 | + script: |
| 128 | + embeddedFiles: |
| 129 | + - name: initData |
| 130 | + filename: init-data.yaml |
| 131 | + type: TEXT |
| 132 | + data: | |
| 133 | + take: A |
| 134 | + activate_error_checking: '{{Param.ActivateErrorChecking}}' |
| 135 | + use_cached_text: '{{Param.UseCachedText}}' |
| 136 | + scene_file: {{Param.Cinema4DFile}} |
| 137 | + output_path: PATH_TO_BE_REPLACED/deadline-cloud-for-cinema-4d/test/integ_xa11y/test_cases/job_specific_take_selection/actual/renders/job_specific_take_selection_A |
| 138 | + multi_pass_path: '' |
| 139 | + actions: |
| 140 | + onEnter: |
| 141 | + command: cinema4d-openjd |
| 142 | + args: |
| 143 | + - daemon |
| 144 | + - start |
| 145 | + - --path-mapping-rules |
| 146 | + - file://{{Session.PathMappingRulesFile}} |
| 147 | + - --connection-file |
| 148 | + - '{{Session.WorkingDirectory}}/connection.json' |
| 149 | + - --init-data |
| 150 | + - file://{{Env.File.initData}} |
| 151 | + cancelation: |
| 152 | + mode: NOTIFY_THEN_TERMINATE |
| 153 | + timeout: 600 |
| 154 | + onExit: |
| 155 | + command: cinema4d-openjd |
| 156 | + args: |
| 157 | + - daemon |
| 158 | + - stop |
| 159 | + - --connection-file |
| 160 | + - '{{ Session.WorkingDirectory }}/connection.json' |
| 161 | + cancelation: |
| 162 | + mode: NOTIFY_THEN_TERMINATE |
| 163 | + timeout: 300 |
| 164 | + script: |
| 165 | + embeddedFiles: |
| 166 | + - name: runData |
| 167 | + filename: run-data.yaml |
| 168 | + type: TEXT |
| 169 | + data: | |
| 170 | + frame: '{{Task.Param.Frame}}' |
| 171 | + actions: |
| 172 | + onRun: |
| 173 | + command: cinema4d-openjd |
| 174 | + args: |
| 175 | + - daemon |
| 176 | + - run |
| 177 | + - --connection-file |
| 178 | + - '{{ Session.WorkingDirectory }}/connection.json' |
| 179 | + - --run-data |
| 180 | + - file://{{ Task.File.runData }} |
| 181 | + cancelation: |
| 182 | + mode: NOTIFY_THEN_TERMINATE |
| 183 | + timeout: 172800 |
0 commit comments