mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
Ensure to get all nodes
This commit is contained in:
parent
b4e2226301
commit
f40f4a3bcb
3 changed files with 14 additions and 11 deletions
|
|
@ -30,16 +30,18 @@ class CollectYetiRig(pyblish.api.InstancePlugin):
|
|||
"Yeti Rig must have an input_SET")
|
||||
|
||||
# Get the input meshes information
|
||||
input_content = cmds.sets("input_SET", query=True)
|
||||
input_nodes = cmds.listRelatives(input_content,
|
||||
allDescendents=True,
|
||||
fullPath=True) or input_content
|
||||
input_content = cmds.ls(cmds.sets("input_SET", query=True), long=True)
|
||||
|
||||
# Get all the shapes
|
||||
input_shapes = cmds.ls(input_nodes, long=True, noIntermediate=True)
|
||||
# Include children
|
||||
input_content += cmds.listRelatives(input_content,
|
||||
allDescendents=True,
|
||||
fullPath=True) or []
|
||||
|
||||
# Ignore intermediate objects
|
||||
input_content = cmds.ls(input_content, long=True, noIntermediate=True)
|
||||
|
||||
# Store all connections
|
||||
connections = cmds.listConnections(input_shapes,
|
||||
connections = cmds.listConnections(input_content,
|
||||
source=True,
|
||||
destination=False,
|
||||
connections=True,
|
||||
|
|
@ -150,7 +152,6 @@ class CollectYetiRig(pyblish.api.InstancePlugin):
|
|||
if re.match(re_pattern, f)]
|
||||
|
||||
pattern = [clique.PATTERNS["frames"]]
|
||||
collection, remainder = clique.assemble(files,
|
||||
patterns=pattern)
|
||||
collection, remainder = clique.assemble(files, patterns=pattern)
|
||||
|
||||
return collection
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ class ValidateNodeIDs(pyblish.api.InstancePlugin):
|
|||
"colorbleed.rig",
|
||||
"colorbleed.pointcache",
|
||||
"colorbleed.animation",
|
||||
"colorbleed.setdress"]
|
||||
"colorbleed.setdress",
|
||||
"colorbleed.yetiRig"]
|
||||
|
||||
actions = [colorbleed.api.SelectInvalidAction,
|
||||
colorbleed.api.GenerateUUIDsOnInvalidAction]
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ class ValidateNodeIdsUnique(pyblish.api.InstancePlugin):
|
|||
hosts = ['maya']
|
||||
families = ["colorbleed.model",
|
||||
"colorbleed.look",
|
||||
"colorbleed.rig"]
|
||||
"colorbleed.rig",
|
||||
"colorbleed.yetiRig"]
|
||||
|
||||
actions = [colorbleed.api.SelectInvalidAction,
|
||||
colorbleed.api.GenerateUUIDsOnInvalidAction]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue