Merge pull request #1398 from pypeclub/bugfix/1397-maya-vray-problem-getting-all-file-nodes-for-look-publishing

Maya: Vray - problem getting all file nodes for look publishing
This commit is contained in:
Milan Kolar 2021-04-22 18:29:14 +02:00 committed by GitHub
commit 9b842c439b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,6 +348,13 @@ class CollectLook(pyblish.api.InstancePlugin):
history = []
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))