-
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.
fix: when listing layers make sure referenced layers are active. (#164)
* fix: when listing layers make sure referenced layers are active. --------- Signed-off-by: Ramon Montoya Vozmediano <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,969 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
job_bundle_output_tests/referenced_layers/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/ref.ma | ||
- /normalized/job/bundle/dir/referenced_layers.ma | ||
- /normalized/job/bundle/dir/scene_file_to_reference.ma | ||
outputs: | ||
directories: | ||
- /normalized/job/bundle/dir/images | ||
referencedPaths: [] |
27 changes: 27 additions & 0 deletions
27
job_bundle_output_tests/referenced_layers/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,27 @@ | ||
parameterValues: | ||
- name: MayaSceneFile | ||
value: /normalized/job/bundle/dir/referenced_layers.ma | ||
- name: Frames | ||
value: '1' | ||
- 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: ArnoldErrorOnLicenseFailure | ||
value: 'false' | ||
- name: deadline:targetTaskRunStatus | ||
value: READY | ||
- name: deadline:maxFailedTasksCount | ||
value: 20 | ||
- name: deadline:maxRetriesPerTask | ||
value: 5 | ||
- name: deadline:priority | ||
value: 50 |
176 changes: 176 additions & 0 deletions
176
job_bundle_output_tests/referenced_layers/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,176 @@ | ||
specificationVersion: jobtemplate-2023-09 | ||
name: referenced_layers.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. | ||
- name: ArnoldErrorOnLicenseFailure | ||
type: STRING | ||
userInterface: | ||
control: CHECK_BOX | ||
label: Error on License Failure | ||
groupLabel: Arnold Renderer Settings | ||
description: Whether to produce an error when there is an Arnold license failure. | ||
default: 'false' | ||
allowedValues: | ||
- 'true' | ||
- 'false' | ||
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: arnold | ||
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}} | ||
error_on_arnold_license_fail: {{Param.ArnoldErrorOnLicenseFailure}} | ||
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 |
Oops, something went wrong.