mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
replace setdress with assembly in validators
This commit is contained in:
parent
4a96a36637
commit
0fc392caa9
4 changed files with 12 additions and 12 deletions
|
|
@ -8,7 +8,7 @@ from pype.maya.lib import extract_alembic
|
|||
from maya import cmds
|
||||
|
||||
|
||||
class ExtractSetDress(pype.api.Extractor):
|
||||
class ExtractAssembly(pype.api.Extractor):
|
||||
"""Produce an alembic of just point positions and normals.
|
||||
|
||||
Positions and normals are preserved, but nothing more,
|
||||
|
|
@ -16,9 +16,9 @@ class ExtractSetDress(pype.api.Extractor):
|
|||
|
||||
"""
|
||||
|
||||
label = "Extract Set Dress"
|
||||
label = "Extract Assembly"
|
||||
hosts = ["maya"]
|
||||
families = ["setdress"]
|
||||
families = ["assembly"]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
@ -3,7 +3,7 @@ import pype.api
|
|||
import pype.maya.action
|
||||
|
||||
|
||||
class ValidateSetdressNamespaces(pyblish.api.InstancePlugin):
|
||||
class ValidateAssemblyNamespaces(pyblish.api.InstancePlugin):
|
||||
"""Ensure namespaces are not nested
|
||||
|
||||
In the outliner an item in a normal namespace looks as following:
|
||||
|
|
@ -15,9 +15,9 @@ class ValidateSetdressNamespaces(pyblish.api.InstancePlugin):
|
|||
|
||||
"""
|
||||
|
||||
label = "Validate Setdress Namespaces"
|
||||
label = "Validate Assembly Namespaces"
|
||||
order = pyblish.api.ValidatorOrder
|
||||
families = ["setdress"]
|
||||
families = ["assembly"]
|
||||
actions = [pype.maya.action.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
|
|
@ -6,7 +6,7 @@ from maya import cmds
|
|||
import pype.maya.action
|
||||
|
||||
|
||||
class ValidateSetDressModelTransforms(pyblish.api.InstancePlugin):
|
||||
class ValidateAssemblyModelTransforms(pyblish.api.InstancePlugin):
|
||||
"""Verify only root nodes of the loaded asset have transformations.
|
||||
|
||||
Note: This check is temporary and is subject to change.
|
||||
|
|
@ -26,8 +26,8 @@ class ValidateSetDressModelTransforms(pyblish.api.InstancePlugin):
|
|||
"""
|
||||
|
||||
order = pyblish.api.ValidatorOrder + 0.49
|
||||
label = "Setdress Model Transforms"
|
||||
families = ["setdress"]
|
||||
label = "Assembly Model Transforms"
|
||||
families = ["assembly"]
|
||||
actions = [pype.maya.action.SelectInvalidAction,
|
||||
pype.api.RepairAction]
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ class ValidateSetDressModelTransforms(pyblish.api.InstancePlugin):
|
|||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
if invalid:
|
||||
raise RuntimeError("Found {} invalid transforms of setdress "
|
||||
raise RuntimeError("Found {} invalid transforms of assembly "
|
||||
"items".format(len(invalid)))
|
||||
|
||||
@classmethod
|
||||
|
|
@ -22,8 +22,8 @@ class ValidateNodeIDs(pyblish.api.InstancePlugin):
|
|||
"rig",
|
||||
"pointcache",
|
||||
"animation",
|
||||
"setdress",
|
||||
"yetiRig"]
|
||||
"yetiRig",
|
||||
"assembly"]
|
||||
|
||||
actions = [pype.maya.action.SelectInvalidAction,
|
||||
pype.maya.action.GenerateUUIDsOnInvalidAction]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue