Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: Deadline custom settings #1797

Merged
merged 5 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions openpype/modules/deadline/plugins/publish/submit_maya_deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,21 @@ def process(self, instance):
["DEADLINE_REST_URL"]
)

self._job_info = (
context.data["project_settings"]
["maya"]
["publish"]
["deadline"]
["jobInfo"]
iLLiCiTiT marked this conversation as resolved.
Show resolved Hide resolved
)
self._plugin_info = (
context.data["project_settings"]
["maya"]
["publish"]
["deadline"]
["pluginInfo"]
)

assert self._deadline_url, "Requires DEADLINE_REST_URL"

context = instance.context
Expand Down Expand Up @@ -536,6 +551,10 @@ def process(self, instance):

self.preflight_check(instance)

# add jobInfo and pluginInfo variables from Settings
payload["JobInfo"].update(self._job_info)
payload["PluginInfo"].update(self._plugin_info)

# Prepare tiles data ------------------------------------------------
if instance.data.get("tileRendering"):
# if we have sequence of files, we need to create tile job for
Expand Down
4 changes: 4 additions & 0 deletions openpype/settings/defaults/project_settings/maya.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@
}
}
},
"deadline": {
"jobInfo": {},
"pluginInfo": {}
},
"ExtractCameraAlembic": {
"enabled": true,
"optional": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,24 @@
"type": "schema",
"name": "schema_maya_capture"
},
{
iLLiCiTiT marked this conversation as resolved.
Show resolved Hide resolved
"type": "dict",
"collapsible": true,
"key": "deadline",
"label": "Additional Deadline Settings",
"children": [
{
"type": "raw-json",
"key": "jobInfo",
"label": "Additional JobInfo data"
},
{
"type": "raw-json",
"key": "pluginInfo",
"label": "Additional PluginInfo data"
}
]
},
{
"type": "dict",
"collapsible": true,
Expand Down