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

Maya: Vray - problem getting all file nodes for look publishing #1399

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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