This commit is contained in:
Kayla Man 2023-12-04 17:41:28 +08:00
parent b502019d2b
commit caf8a2a2df

View file

@ -128,12 +128,13 @@ class CollectYetiRig(pyblish.api.InstancePlugin):
image_search_paths = self._replace_tokens(image_search_paths)
# List all related textures
texture_nodes = cmds.pgYetiGraph(node, listNodes=True, type="texture")
texture_nodes = cmds.pgYetiGraph(
node, listNodes=True, type="texture")
texture_filenames = [cmds.pgYetiGraph(node,
node=texture_node,
param="file_name",
getParamValue=True)
for texture_node in texture_nodes]
for texture_node in texture_nodes]
self.log.debug("Found %i texture(s)" % len(texture_filenames))
# Get all reference nodes