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

Commit

Permalink
Hotfix for Maya + Deadline + Redshift renders without merge AOVs Fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Oct 7, 2022
1 parent bc2441f commit ea4ede0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

from openpype.pipeline import legacy_io

from openpype.hosts.maya.api.lib_rendersettings import RenderSettings
from openpype.hosts.maya.api.lib import get_attr_in_layer

from openpype_modules.deadline import abstract_submit_deadline
from openpype_modules.deadline.abstract_submit_deadline import DeadlineJobInfo

Expand Down Expand Up @@ -471,9 +474,10 @@ def _get_maya_payload(self, data):
job_info.AssetDependency += self.scene_path

# Get layer prefix
render_products = self._instance.data["renderProducts"]
layer_metadata = render_products.layer_data
layer_prefix = layer_metadata.filePrefix
renderlayer = self._instance.data["setMembers"]
renderer = self._instance.data["renderer"]
layer_prefix_attr = RenderSettings.get_image_prefix_attr(renderer)
layer_prefix = get_attr_in_layer(layer_prefix_attr, layer=renderlayer)

plugin_info = copy.deepcopy(self.plugin_info)
plugin_info.update({
Expand Down

0 comments on commit ea4ede0

Please sign in to comment.