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

Maya: fix regression of Renderman Deadline hack #3943

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@ def _get_maya_payload(self, data):
layer_metadata = render_products.layer_data
layer_prefix = layer_metadata.filePrefix

plugin_info = copy.deepcopy(self.plugin_info)
plugin_info.update({
# Output directory and filename
"OutputFilePath": data["dirname"].replace("\\", "/"),
"OutputFilePrefix": layer_prefix,
})

# This hack is here because of how Deadline handles Renderman version.
# it considers everything with `renderman` set as version older than
# Renderman 22, and so if we are using renderman > 21 we need to set
Expand All @@ -491,12 +498,7 @@ def _get_maya_payload(self, data):
if int(rman_version.split(".")[0]) > 22:
renderer = "renderman22"

plugin_info = copy.deepcopy(self.plugin_info)
plugin_info.update({
# Output directory and filename
"OutputFilePath": data["dirname"].replace("\\", "/"),
"OutputFilePrefix": layer_prefix,
})
plugin_info["Renderer"] = renderer

return job_info, plugin_info

Expand Down