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

bug fix on getting aov expected files when global aov mode disabled in Redshift #178

Merged
merged 10 commits into from
Apr 5, 2024
19 changes: 18 additions & 1 deletion client/ayon_core/hosts/maya/api/lib_renderproducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,26 @@ def get_render_products(self):
aovs = list(set(aovs) - set(ref_aovs))

products = []
# global_aov_enabled = bool(
# self._get_attr("redshiftOptions.aovGlobalEnableMode")
# )
global_aov_enabled = bool(
cmds.getAttr("redshiftOptions.aovGlobalEnableMode"))
moonyuet marked this conversation as resolved.
Show resolved Hide resolved
colorspace = lib.get_color_management_output_transform()
if not global_aov_enabled:
# only beauty output
for camera in cameras:
products.insert(0,
RenderProduct(productName="",
ext=ext,
multipart=self.multipart,
camera=camera,
colorspace=colorspace))
return products

light_groups_enabled = False
has_beauty_aov = False
colorspace = lib.get_color_management_output_transform()

for aov in aovs:
enabled = self._get_attr(aov, "enabled")
if not enabled:
Expand Down
Loading