From 71dcbfaf04455777ea763aad54881d696e11c70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= <33513211+antirotor@users.noreply.github.com> Date: Tue, 3 Nov 2020 18:44:41 +0100 Subject: [PATCH] vray fixes this adds two fixes - one for getting frame padding directly from vray settings (and not render globals) and one for filtering aovs coming from refereces (prefixed with namespaces) --- pype/hosts/maya/expected_files.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pype/hosts/maya/expected_files.py b/pype/hosts/maya/expected_files.py index 77d55eb1c1..dab4c18c2b 100644 --- a/pype/hosts/maya/expected_files.py +++ b/pype/hosts/maya/expected_files.py @@ -564,6 +564,7 @@ class ExpectedFilesVray(AExpectedFiles): if default_ext == "exr (multichannel)" or default_ext == "exr (deep)": default_ext = "exr" layer_data["defaultExt"] = default_ext + layer_data["padding"] = cmds.getAttr("vraySettings.fileNamePadding") return layer_data def get_files(self): @@ -614,11 +615,14 @@ class ExpectedFilesVray(AExpectedFiles): if default_ext == "exr (multichannel)" or default_ext == "exr (deep)": default_ext = "exr" + # filter all namespace prefixed AOVs - they are pulled in from + # references and are not rendered. vr_aovs = [ n for n in cmds.ls( type=["VRayRenderElement", "VRayRenderElementSet"] ) + if len(n.split(":")) == 1 ] for aov in vr_aovs: