mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
code tweak on collect ornatrix rig
This commit is contained in:
parent
3bd768f4fc
commit
2960816591
1 changed files with 8 additions and 4 deletions
|
|
@ -15,6 +15,12 @@ SETTINGS = {"renderDensity",
|
|||
"cbId"}
|
||||
|
||||
|
||||
ORNATRIX_NODES = {
|
||||
"HairFromGuidesNode", "GuidesFromMeshNode",
|
||||
"MeshFromStrandsNode", "SurfaceCombNode"
|
||||
}
|
||||
|
||||
|
||||
class CollectYetiRig(plugin.MayaInstancePlugin):
|
||||
"""Collect all information of the Yeti Rig"""
|
||||
|
||||
|
|
@ -346,10 +352,7 @@ class CollectOxRig(CollectYetiRig):
|
|||
|
||||
ox_nodes = [
|
||||
ox_node for ox_node in cmds.listConnections(node_shape, destination=True)
|
||||
if cmds.nodeType(ox_node) in {
|
||||
"HairFromGuidesNode", "GuidesFromMeshNode",
|
||||
"MeshFromStrandsNode", "SurfaceCombNode"
|
||||
}
|
||||
if cmds.nodeType(ox_node) in ORNATRIX_NODES
|
||||
]
|
||||
ox_imageFile = [
|
||||
ox_img for ox_img in cmds.listConnections(ox_nodes, destination=False)
|
||||
|
|
@ -357,6 +360,7 @@ class CollectOxRig(CollectYetiRig):
|
|||
]
|
||||
if not ox_imageFile:
|
||||
return []
|
||||
|
||||
for img in ox_imageFile:
|
||||
texture_attr = "{}.fileTextureName".format(img)
|
||||
texture = cmds.getAttr("{}.fileTextureName".format(img))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue