mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
big roy's comment on rig.fbx families
This commit is contained in:
parent
cce6bf2e42
commit
cfb4ceb5d4
9 changed files with 19 additions and 12 deletions
|
|
@ -20,6 +20,7 @@ class CollectFbxAnimation(pyblish.api.InstancePlugin):
|
|||
if i.lower().endswith("skeletonanim_set")
|
||||
]
|
||||
if skeleton_sets:
|
||||
instance.data["families"].append("rig.fbx")
|
||||
for skeleton_set in skeleton_sets:
|
||||
skeleton_content = cmds.ls(
|
||||
cmds.sets(skeleton_set, query=True), long=True)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class CollectRigFbx(pyblish.api.InstancePlugin):
|
|||
if i.lower().endswith("skeletonmesh_set")
|
||||
]
|
||||
if skeleton_sets or skeleton_mesh_sets:
|
||||
instance.data["families"].append("rig.fbx")
|
||||
instance.data["skeleton_mesh"] = []
|
||||
for skeleton_set in skeleton_sets:
|
||||
skeleton_content = cmds.ls(
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ExtractRigFBX(publish.Extractor,
|
|||
"""
|
||||
order = pyblish.api.ExtractorOrder
|
||||
label = "Extract Animation (FBX)"
|
||||
families = ["animation"]
|
||||
families = ["rig.fbx"]
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ExtractRigFBX(publish.Extractor,
|
|||
"""
|
||||
order = pyblish.api.ExtractorOrder
|
||||
label = "Extract Rig (FBX)"
|
||||
families = ["rig"]
|
||||
families = ["rig.fbx"]
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ class ValidateSkeletonRigContents(pyblish.api.InstancePlugin):
|
|||
"""
|
||||
|
||||
order = ValidateContentsOrder
|
||||
label = "Rig Contents"
|
||||
label = "Skeleton Rig Contents"
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
families = ["rig.fbx"]
|
||||
|
||||
accepted_output = ["mesh", "transform"]
|
||||
accepted_controllers = ["transform"]
|
||||
|
|
@ -27,9 +27,13 @@ class ValidateSkeletonRigContents(pyblish.api.InstancePlugin):
|
|||
def process(self, instance):
|
||||
|
||||
objectsets = ["skeletonAnim_SET", "skeletonMesh_SET"]
|
||||
missing = [obj for obj in objectsets if obj not in instance]
|
||||
missing = [
|
||||
key for key in objectsets if key not in instance.data["rig_sets"]
|
||||
]
|
||||
if missing:
|
||||
self.log.debug("%s is missing %s" % (instance, missing))
|
||||
self.log.debug(
|
||||
"%s is missing sets: %s" % (instance, ", ".join(missing))
|
||||
)
|
||||
return
|
||||
|
||||
controls_set = instance.data["rig_sets"]["skeletonAnim_SET"]
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ class ValidateSkeletonRigControllers(pyblish.api.InstancePlugin):
|
|||
|
||||
"""
|
||||
order = ValidateContentsOrder + 0.05
|
||||
label = "Rig Controllers"
|
||||
label = "Skeleton Rig Controllers"
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
families = ["rig.fbx"]
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ class ValidateSkeletonRigOutSetNodeIds(pyblish.api.InstancePlugin):
|
|||
"""
|
||||
|
||||
order = ValidateContentsOrder
|
||||
families = ["rig"]
|
||||
families = ["rig.fbx"]
|
||||
hosts = ['maya']
|
||||
label = 'Rig Out Set Node Ids'
|
||||
label = 'Skeleton Rig Out Set Node Ids'
|
||||
actions = [
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction,
|
||||
RepairAction
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ class ValidateSkeletonRigOutputIds(pyblish.api.InstancePlugin):
|
|||
|
||||
"""
|
||||
order = ValidateContentsOrder + 0.05
|
||||
label = "Rig Output Ids"
|
||||
label = "Skeleton Rig Output Ids"
|
||||
hosts = ["maya"]
|
||||
families = ["rig"]
|
||||
families = ["rig.fbx"]
|
||||
actions = [RepairAction,
|
||||
openpype.hosts.maya.api.action.SelectInvalidAction]
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
"review",
|
||||
"rendersetup",
|
||||
"rig",
|
||||
"rig.fbx",
|
||||
"plate",
|
||||
"look",
|
||||
"audio",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue