diff --git a/colorbleed/plugins/maya/publish/validate_animation_content.py b/colorbleed/plugins/maya/publish/validate_animation_content.py index 0725281705..da1ec9e84a 100644 --- a/colorbleed/plugins/maya/publish/validate_animation_content.py +++ b/colorbleed/plugins/maya/publish/validate_animation_content.py @@ -20,6 +20,12 @@ class ValidateAnimationContent(pyblish.api.InstancePlugin): def get_invalid(cls, instance): assert 'out_hierarchy' in instance.data, "Missing `out_hierarchy` data" + out_set = next((i for i in instance.data["setMembers"] if + i.endswith("out_SET")), None) + + assert out_set, ("Instance '%s' has no objectSet named: `OUT_set`" % + instance.name) + # All nodes in the `out_hierarchy` must be among the nodes that are # in the instance. The nodes in the instance are found from the top # group, as such this tests whether all nodes are under that top group.