From f6323020d3c815c504e8e4ba086ff67a9e948da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= <33513211+antirotor@users.noreply.github.com> Date: Wed, 11 Aug 2021 15:09:34 +0200 Subject: [PATCH] don't add `beauty_other` when lightgroups are on --- openpype/hosts/maya/api/lib_renderproducts.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/maya/api/lib_renderproducts.py b/openpype/hosts/maya/api/lib_renderproducts.py index c4c8102f58..7f897fa4ce 100644 --- a/openpype/hosts/maya/api/lib_renderproducts.py +++ b/openpype/hosts/maya/api/lib_renderproducts.py @@ -894,6 +894,7 @@ class RenderProductsRedshift(ARenderProducts): aovs = list(set(aovs) - set(ref_aovs)) products = [] + light_groups_enabled = False has_beauty_aov = False for aov in aovs: enabled = self._get_attr(aov, "enabled") @@ -937,6 +938,9 @@ class RenderProductsRedshift(ARenderProducts): ext=ext, multipart=aov_multipart) products.append(product) + + if light_groups: + light_groups_enabled = True # Redshift AOV Light Select always renders the global AOV # even when light groups are present so we don't need to @@ -950,7 +954,10 @@ class RenderProductsRedshift(ARenderProducts): # When a Beauty AOV is added manually, it will be rendered as # 'Beauty_other' in file name and "standard" beauty will have # 'Beauty' in its name. When disabled, standard output will be - # without `Beauty`. + # without `Beauty`. Except when using light groups. + if light_groups_enabled: + return products + beauty_name = "Beauty_other" if has_beauty_aov else "" products.insert(0, RenderProduct(productName=beauty_name,