From 13614eba3fb740be15615b2ea0c354ef85bf9f8d Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Thu, 22 Apr 2021 16:13:07 +0200 Subject: [PATCH] specifically list history of VrayPluginNodeMtl --- pype/plugins/maya/publish/collect_look.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pype/plugins/maya/publish/collect_look.py b/pype/plugins/maya/publish/collect_look.py index 7df85e4ba7a..297509dfabd 100644 --- a/pype/plugins/maya/publish/collect_look.py +++ b/pype/plugins/maya/publish/collect_look.py @@ -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))