mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
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:
commit
9b842c439b
1 changed files with 7 additions and 0 deletions
|
|
@ -348,6 +348,13 @@ class CollectLook(pyblish.api.InstancePlugin):
|
||||||
history = []
|
history = []
|
||||||
for material in materials:
|
for material in materials:
|
||||||
history.extend(cmds.listHistory(material))
|
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 = cmds.ls(history, type="file", long=True)
|
||||||
files.extend(cmds.ls(history, type="aiImage", long=True))
|
files.extend(cmds.ls(history, type="aiImage", long=True))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue