mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge accidental "colorbleed" branch
This commit is contained in:
commit
b40fe7faae
5 changed files with 11 additions and 11 deletions
|
|
@ -13,5 +13,5 @@ class CreateRig(avalon.maya.Creator):
|
|||
instance = super(CreateRig, self).process()
|
||||
|
||||
controls = cmds.sets(name="controls_SET", empty=True)
|
||||
pointcache = cmds.sets(name="pointcache_SET", empty=True)
|
||||
pointcache = cmds.sets(name="out_SET", empty=True)
|
||||
cmds.sets([controls, pointcache], forceElement=instance)
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import colorbleed.api
|
|||
|
||||
|
||||
class ValidateRigPointcacheNodeIds(pyblish.api.InstancePlugin):
|
||||
"""Validate rig pointcache_SET nodes have ids
|
||||
"""Validate rig out_SET nodes have ids
|
||||
|
||||
The nodes in a rig's pointcache_SET must all have node IDs
|
||||
The nodes in a rig's out_SET must all have node IDs
|
||||
that are all unique.
|
||||
|
||||
Geometry in a rig should be using published model's geometry.
|
||||
|
|
@ -29,9 +29,9 @@ class ValidateRigPointcacheNodeIds(pyblish.api.InstancePlugin):
|
|||
def get_invalid(cls, instance):
|
||||
from maya import cmds
|
||||
|
||||
# Get pointcache_SET
|
||||
# Get out_SET
|
||||
sets = cmds.ls(instance, type='objectSet')
|
||||
pointcache_sets = [x for x in sets if x == 'pointcache_SET']
|
||||
pointcache_sets = [x for x in sets if x == 'out_SET']
|
||||
|
||||
nodes = list()
|
||||
for s in pointcache_sets:
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@ class ValidateRigPointcacheShapeRenderStats(pyblish.api.Validator):
|
|||
@classmethod
|
||||
def get_pointcache_nodes(cls, instance):
|
||||
|
||||
# Get pointcache_SET
|
||||
# Get out_SET
|
||||
sets = cmds.ls(instance, type='objectSet')
|
||||
pointcache_sets = [x for x in sets if x == 'pointcache_SET']
|
||||
pointcache_sets = [x for x in sets if x == 'out_SET']
|
||||
|
||||
nodes = list()
|
||||
for s in pointcache_sets:
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class CollectLook(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
|
||||
# Ignore specifically named sets (check with endswith)
|
||||
IGNORE = ["pointcache_SET", "controls_SET", "_INST"]
|
||||
IGNORE = ["out_SET", "controls_SET", "_INST"]
|
||||
|
||||
def collect(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import cbra.utils.maya.node_uuid as id_utils
|
|||
|
||||
|
||||
class ValidateRigPointcacheRelatedNodeIds(pyblish.api.InstancePlugin):
|
||||
"""Validate rig pointcache_SET nodes have related ids to current context
|
||||
"""Validate rig out_SET nodes have related ids to current context
|
||||
|
||||
An ID is 'related' if its built in the current Item.
|
||||
|
||||
|
|
@ -29,9 +29,9 @@ class ValidateRigPointcacheRelatedNodeIds(pyblish.api.InstancePlugin):
|
|||
@classmethod
|
||||
def get_pointcache_nodes(cls, instance):
|
||||
|
||||
# Get pointcache_SET
|
||||
# Get out_SET
|
||||
sets = cmds.ls(instance, type='objectSet')
|
||||
pointcache_sets = [x for x in sets if x == 'pointcache_SET']
|
||||
pointcache_sets = [x for x in sets if x == 'out_SET']
|
||||
|
||||
nodes = list()
|
||||
for s in pointcache_sets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue