-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add Renderman Handler Signed-off-by: Ramon Montoya Vozmediano <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,630 additions
and
14 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
job_bundle_output_tests/renderman/expected_job_bundle/asset_references.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
assetReferences: | ||
inputs: | ||
directories: [] | ||
filenames: | ||
- /normalized/job/bundle/dir/deadline_logo_48x48.png | ||
- /normalized/job/bundle/dir/deadline_logo_48x48.png.tex | ||
- /normalized/job/bundle/dir/renderman.ma | ||
outputs: | ||
directories: | ||
- /normalized/job/bundle/dir/images | ||
referencedPaths: [] |
25 changes: 25 additions & 0 deletions
25
job_bundle_output_tests/renderman/expected_job_bundle/parameter_values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
parameterValues: | ||
- name: MayaSceneFile | ||
value: /normalized/job/bundle/dir/renderman.ma | ||
- name: Frames | ||
value: '537' | ||
- name: OutputFilePrefix | ||
value: <Scene> | ||
- name: ImageWidth | ||
value: 960 | ||
- name: ImageHeight | ||
value: 540 | ||
- name: ProjectPath | ||
value: /normalized/job/bundle/dir/ | ||
- name: OutputFilePath | ||
value: /normalized/job/bundle/dir/images | ||
- name: RenderSetupIncludeLights | ||
value: 'true' | ||
- name: deadline:targetTaskRunStatus | ||
value: READY | ||
- name: deadline:maxFailedTasksCount | ||
value: 20 | ||
- name: deadline:maxRetriesPerTask | ||
value: 5 | ||
- name: deadline:priority | ||
value: 50 |
164 changes: 164 additions & 0 deletions
164
job_bundle_output_tests/renderman/expected_job_bundle/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
specificationVersion: jobtemplate-2023-09 | ||
name: renderman.ma | ||
parameterDefinitions: | ||
- name: MayaSceneFile | ||
type: PATH | ||
objectType: FILE | ||
dataFlow: IN | ||
userInterface: | ||
control: CHOOSE_INPUT_FILE | ||
label: Maya Scene File | ||
groupLabel: Maya Settings | ||
fileFilters: | ||
- label: Maya Scene Files | ||
patterns: | ||
- '*.mb' | ||
- '*.ma' | ||
- label: All Files | ||
patterns: | ||
- '*' | ||
description: The Maya scene file to render. | ||
- name: Frames | ||
type: STRING | ||
userInterface: | ||
control: LINE_EDIT | ||
label: Frames | ||
groupLabel: Maya Settings | ||
description: The frames to render. E.g. 1-3,8,11-15 | ||
minLength: 1 | ||
- name: ProjectPath | ||
type: PATH | ||
objectType: DIRECTORY | ||
dataFlow: NONE | ||
userInterface: | ||
control: CHOOSE_DIRECTORY | ||
label: Project Path | ||
groupLabel: Maya Settings | ||
description: The Maya project path. | ||
- name: OutputFilePath | ||
type: PATH | ||
objectType: DIRECTORY | ||
dataFlow: OUT | ||
userInterface: | ||
control: CHOOSE_DIRECTORY | ||
label: Output File Path | ||
groupLabel: Maya Settings | ||
description: The render output path. | ||
- name: RenderSetupIncludeLights | ||
type: STRING | ||
userInterface: | ||
control: CHECK_BOX | ||
label: Include All Lights | ||
groupLabel: Maya Settings | ||
description: Include all lights in the render. | ||
default: 'true' | ||
allowedValues: | ||
- 'true' | ||
- 'false' | ||
- name: StrictErrorChecking | ||
type: STRING | ||
userInterface: | ||
control: CHECK_BOX | ||
label: Strict Error Checking | ||
groupLabel: Maya Settings | ||
description: Fail when errors occur. | ||
default: 'false' | ||
allowedValues: | ||
- 'true' | ||
- 'false' | ||
- name: OutputFilePrefix | ||
type: STRING | ||
userInterface: | ||
control: LINE_EDIT | ||
label: Output File Prefix | ||
groupLabel: Maya Settings | ||
description: The output filename prefix. | ||
- name: ImageWidth | ||
type: INT | ||
userInterface: | ||
control: SPIN_BOX | ||
label: Image Width | ||
groupLabel: Maya Settings | ||
minValue: 1 | ||
description: The image width of the output. | ||
- name: ImageHeight | ||
type: INT | ||
userInterface: | ||
control: SPIN_BOX | ||
label: Image Height | ||
groupLabel: Maya Settings | ||
minValue: 1 | ||
description: The image height of the output. | ||
steps: | ||
- name: masterLayer | ||
parameterSpace: | ||
taskParameterDefinitions: | ||
- name: Frame | ||
type: INT | ||
range: '{{Param.Frames}}' | ||
- name: Camera | ||
type: STRING | ||
range: | ||
- persp | ||
stepEnvironments: | ||
- name: Maya | ||
description: Runs Maya in the background. | ||
script: | ||
embeddedFiles: | ||
- name: initData | ||
filename: init-data.yaml | ||
type: TEXT | ||
data: | | ||
renderer: renderman | ||
render_layer: masterLayer | ||
scene_file: '{{Param.MayaSceneFile}}' | ||
project_path: '{{Param.ProjectPath}}' | ||
output_file_path: '{{Param.OutputFilePath}}' | ||
render_setup_include_lights: {{Param.RenderSetupIncludeLights}} | ||
strict_error_checking: {{Param.StrictErrorChecking}} | ||
output_file_prefix: '{{Param.OutputFilePrefix}}' | ||
image_width: {{Param.ImageWidth}} | ||
image_height: {{Param.ImageHeight}} | ||
actions: | ||
onEnter: | ||
command: MayaAdaptor | ||
args: | ||
- daemon | ||
- start | ||
- --path-mapping-rules | ||
- file://{{Session.PathMappingRulesFile}} | ||
- --connection-file | ||
- '{{Session.WorkingDirectory}}/connection.json' | ||
- --init-data | ||
- file://{{Env.File.initData}} | ||
cancelation: | ||
mode: NOTIFY_THEN_TERMINATE | ||
onExit: | ||
command: MayaAdaptor | ||
args: | ||
- daemon | ||
- stop | ||
- --connection-file | ||
- '{{ Session.WorkingDirectory }}/connection.json' | ||
cancelation: | ||
mode: NOTIFY_THEN_TERMINATE | ||
script: | ||
embeddedFiles: | ||
- name: runData | ||
filename: run-data.yaml | ||
type: TEXT | ||
data: | | ||
frame: {{Task.Param.Frame}} | ||
camera: '{{Task.Param.Camera}}' | ||
actions: | ||
onRun: | ||
command: MayaAdaptor | ||
args: | ||
- daemon | ||
- run | ||
- --connection-file | ||
- '{{ Session.WorkingDirectory }}/connection.json' | ||
- --run-data | ||
- file://{{ Task.File.runData }} | ||
cancelation: | ||
mode: NOTIFY_THEN_TERMINATE |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.