diff --git a/colorbleed/plugins/maya/load/load_yeti_cache.py b/colorbleed/plugins/maya/load/load_yeti_cache.py index a575fa9341..93ddc04d3e 100644 --- a/colorbleed/plugins/maya/load/load_yeti_cache.py +++ b/colorbleed/plugins/maya/load/load_yeti_cache.py @@ -110,6 +110,7 @@ class YetiCacheLoader(api.Loader): nodes.append(yeti_node) nodes.append(transform_node) + group_name = "{}:{}".format(namespace, asset["name"]) group_node = cmds.group(nodes, name=group_name) diff --git a/colorbleed/plugins/maya/publish/validate_look_contents.py b/colorbleed/plugins/maya/publish/validate_look_contents.py index c6ea36f9be..5f47ea39cc 100644 --- a/colorbleed/plugins/maya/publish/validate_look_contents.py +++ b/colorbleed/plugins/maya/publish/validate_look_contents.py @@ -71,10 +71,18 @@ class ValidateLookContents(pyblish.api.InstancePlugin): # Validate at least one single relationship is collected if not lookdata["relationships"]: - cls.log.error("Look '{}' has no " - "`relationships`".format(instance.name)) + cls.log.error("Look '%s' has no " + "`relationships`" % instance.name) invalid.add(instance.name) + # Check if attributes are on a node with an ID, crucial for rebuild! + for attr_changes in lookdata["attributes"]: + if not attr_changes["uuid"]: + cls.log.error("Node '%s' has no cbId, please set the " + "attributes to its children if it has any" + % attr_changes["name"]) + invalid.add(instance.name) + return list(invalid) @classmethod