mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Cosmetics, move class constants actually to top
This commit is contained in:
parent
9015820c36
commit
b57b1ce02a
1 changed files with 7 additions and 7 deletions
|
|
@ -30,12 +30,6 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
|
|||
actions = [colorbleed.api.RepairAction,
|
||||
colorbleed.api.SelectInvalidAction]
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
if invalid:
|
||||
raise RuntimeError('{} failed, see log '
|
||||
'information'.format(self.label))
|
||||
|
||||
# Default controller values
|
||||
CONTROLLER_DEFAULTS = {
|
||||
"translateX": 0,
|
||||
|
|
@ -49,6 +43,12 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
|
|||
"scaleZ": 1
|
||||
}
|
||||
|
||||
def process(self, instance):
|
||||
invalid = self.get_invalid(instance)
|
||||
if invalid:
|
||||
raise RuntimeError('{} failed, see log '
|
||||
'information'.format(self.label))
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
||||
|
|
@ -199,4 +199,4 @@ class ValidateRigControllers(pyblish.api.InstancePlugin):
|
|||
attr = plug.split(".")[-1]
|
||||
default = cls.CONTROLLER_DEFAULTS[attr]
|
||||
cls.log.info("Setting %s to %s" % (plug, default))
|
||||
cmds.setAttr(plug, default)
|
||||
cmds.setAttr(plug, default)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue