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

Commit

Permalink
Merge pull request #682 from pypeclub/bugfix/maya-vray-render-fixes
Browse files Browse the repository at this point in the history
Maya: Vray expected file fixes
  • Loading branch information
mkolar authored Nov 9, 2020
2 parents cf438c6 + 71dcbfa commit af4d3f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pype/hosts/maya/expected_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ def _get_layer_data(self):
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):
Expand Down Expand Up @@ -614,11 +615,14 @@ def get_aovs(self):
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:
Expand Down

0 comments on commit af4d3f8

Please sign in to comment.