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 #3274 from pypeclub/bugfix/look-skip-empty-filenam…
Browse files Browse the repository at this point in the history
…e-attributes

Maya look: skip empty file attributes
  • Loading branch information
antirotor authored Jun 14, 2022
2 parents 277acc8 + f760c9d commit 45d7238
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openpype/hosts/maya/plugins/publish/collect_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,18 @@ def collect_resources(self, node):
source,
computed_source))

# renderman allows nodes to have filename attribute empty while
# you can have another incoming connection from different node.
pxr_nodes = set()
if cmds.pluginInfo("RenderMan_for_Maya", query=True, loaded=True):
pxr_nodes = set(
cmds.pluginInfo("RenderMan_for_Maya",
query=True,
dependNode=True)
)
if not source and cmds.nodeType(node) in pxr_nodes:
self.log.info("Renderman: source is empty, skipping...")
continue
# We replace backslashes with forward slashes because V-Ray
# can't handle the UDIM files with the backslashes in the
# paths as the computed patterns
Expand Down

0 comments on commit 45d7238

Please sign in to comment.