From f8f8bd2ebf2852eb51f26c9ceff6a0b994878d3a Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 5 Oct 2018 12:20:57 +0200 Subject: [PATCH] Keep a reference to the instance objectSet upon collection --- colorbleed/plugins/maya/publish/collect_instances.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/colorbleed/plugins/maya/publish/collect_instances.py b/colorbleed/plugins/maya/publish/collect_instances.py index f23f0aa396..8ed6242036 100644 --- a/colorbleed/plugins/maya/publish/collect_instances.py +++ b/colorbleed/plugins/maya/publish/collect_instances.py @@ -115,7 +115,13 @@ class CollectInstances(pyblish.api.ContextPlugin): # Create the instance instance = context.create_instance(label) instance[:] = members_hierarchy + + # Store a reference to the object set of this instance + instance.data["objectSet"] = objset + + # Store the exact members of the object set instance.data["setMembers"] = members + instance.data.update(data) # Produce diagnostic message for any graphical