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 #1399 from pypeclub/2.x/bugfix/1397-maya-vray-prob…
Browse files Browse the repository at this point in the history
…lem-getting-all-file-nodes-for-look-publishing

Maya: Vray - problem getting all file nodes for look publishing
  • Loading branch information
mkolar authored Apr 22, 2021
2 parents 184aa40 + 13614eb commit 7348d92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pype/plugins/maya/publish/collect_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,13 @@ def collect(self, instance):
history = list()
for material in materials:
history.extend(cmds.listHistory(material))

# handle VrayPluginNodeMtl node - see #1397
vray_plugin_nodes = cmds.ls(
history, type="VRayPluginNodeMtl", long=True)
for vray_node in vray_plugin_nodes:
history.extend(cmds.listHistory(vray_node))

files = cmds.ls(history, type="file", long=True)
files.extend(cmds.ls(history, type="aiImage", long=True))

Expand Down

0 comments on commit 7348d92

Please sign in to comment.