From 19e8cc31c5218f1f5bd888ccba730b7ad2f7389a Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 23 Jun 2017 17:50:06 +0200 Subject: [PATCH] Refactor rig's "pointcache_SET" to "out_SET" --- colorbleed/plugins/maya/create/colorbleed_rig.py | 2 +- .../maya/publish/_validate_rig_pointcache_node_ids.py | 8 ++++---- .../_validate_rig_pointcache_shape_render_stats.py | 4 ++-- colorbleed/plugins/maya/publish/collect_look.py | 2 +- colorbleed/plugins/maya/publish/validate_rig_contents.py | 8 ++++---- .../publish/validate_rig_pointcache_related_node_ids.py | 6 +++--- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/colorbleed/plugins/maya/create/colorbleed_rig.py b/colorbleed/plugins/maya/create/colorbleed_rig.py index 4af7eaae3e..b29d5ae7e5 100644 --- a/colorbleed/plugins/maya/create/colorbleed_rig.py +++ b/colorbleed/plugins/maya/create/colorbleed_rig.py @@ -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) diff --git a/colorbleed/plugins/maya/publish/_validate_rig_pointcache_node_ids.py b/colorbleed/plugins/maya/publish/_validate_rig_pointcache_node_ids.py index afb2fd5bb2..8dcee25aeb 100644 --- a/colorbleed/plugins/maya/publish/_validate_rig_pointcache_node_ids.py +++ b/colorbleed/plugins/maya/publish/_validate_rig_pointcache_node_ids.py @@ -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: diff --git a/colorbleed/plugins/maya/publish/_validate_rig_pointcache_shape_render_stats.py b/colorbleed/plugins/maya/publish/_validate_rig_pointcache_shape_render_stats.py index 7663103bbe..0f38f79744 100644 --- a/colorbleed/plugins/maya/publish/_validate_rig_pointcache_shape_render_stats.py +++ b/colorbleed/plugins/maya/publish/_validate_rig_pointcache_shape_render_stats.py @@ -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: diff --git a/colorbleed/plugins/maya/publish/collect_look.py b/colorbleed/plugins/maya/publish/collect_look.py index cd4593ffcd..526eb0a2a8 100644 --- a/colorbleed/plugins/maya/publish/collect_look.py +++ b/colorbleed/plugins/maya/publish/collect_look.py @@ -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): diff --git a/colorbleed/plugins/maya/publish/validate_rig_contents.py b/colorbleed/plugins/maya/publish/validate_rig_contents.py index fb7ae0751a..a48d441797 100644 --- a/colorbleed/plugins/maya/publish/validate_rig_contents.py +++ b/colorbleed/plugins/maya/publish/validate_rig_contents.py @@ -7,7 +7,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin): Every rig must contain at least two object sets: "controls_SET" - Set of all animatable controls - "pointcache_SET" - Set of all cachable meshes + "out_SET" - Set of all cachable meshes """ @@ -21,7 +21,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin): from maya import cmds - objsets = ("controls_SET", "pointcache_SET") + objsets = ("controls_SET", "out_SET") missing = list() for objset in objsets: @@ -40,7 +40,7 @@ class ValidateRigContents(pyblish.api.InstancePlugin): self.log.info("Evaluating contents of object sets..") not_meshes = list() - members = cmds.sets("pointcache_SET", query=True) or [] + members = cmds.sets("out_SET", query=True) or [] shapes = cmds.listRelatives(members, allDescendents=True, shapes=True, @@ -59,5 +59,5 @@ class ValidateRigContents(pyblish.api.InstancePlugin): % not_transforms) assert not_meshes == [], ( - "Only meshes can be part of the pointcache_SET: %s" + "Only meshes can be part of the out_SET: %s" % not_meshes) diff --git a/colorbleed/plugins/maya/publish/validate_rig_pointcache_related_node_ids.py b/colorbleed/plugins/maya/publish/validate_rig_pointcache_related_node_ids.py index 5a7ba1fd01..0f0bcac829 100644 --- a/colorbleed/plugins/maya/publish/validate_rig_pointcache_related_node_ids.py +++ b/colorbleed/plugins/maya/publish/validate_rig_pointcache_related_node_ids.py @@ -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: