Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya: Fix Redshift cryptomatte multipartEXR #6240

Merged
Prev Previous commit
Next Next commit
Make it specific to redshift
  • Loading branch information
tokejepsen committed Apr 7, 2024
commit 837dacd73056cfea97171422e1402adb74d79b70
11 changes: 7 additions & 4 deletions openpype/pipeline/farm/pyblish_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,13 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
# happens with Redshift that forces Cryptomatte renders to be separate
# files even when the rest of the AOVs are merged into a single EXR.
# There might be an edge case where the main instance has cryptomatte
# in the name even though its a multipart EXR.
if (instance.data.get("multipartExr") and
"cryptomatte" not in render_file_name.lower()):
log.debug("Adding preview tag because its multipartExr")
# in the name even though it's a multipart EXR.
if (
instance.data.get("multipartExr") and
instance.data.get("renderer", "") == "redshift" and
"cryptomatte" not in render_file_name.lower()
):
log.debug("Adding preview tag because it's multipartExr")
preview = True
else:
new_instance["multipartExr"] = False
Expand Down
Loading