From 4342db71ce57f2930d09b6966aa72d07e29e2b81 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Tue, 12 May 2020 17:46:20 +0200 Subject: [PATCH] feat(nks): adding comment making more clear the process --- .../nukestudio/publish/collect_hierarchy_context.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pype/plugins/nukestudio/publish/collect_hierarchy_context.py b/pype/plugins/nukestudio/publish/collect_hierarchy_context.py index edf08dec6e..0cb7e7f56a 100644 --- a/pype/plugins/nukestudio/publish/collect_hierarchy_context.py +++ b/pype/plugins/nukestudio/publish/collect_hierarchy_context.py @@ -74,11 +74,14 @@ class CollectHierarchyInstance(pyblish.api.ContextPlugin): # and finding only hierarchical tag if "hierarchy" in t_type.lower(): - match = next( - (k for k, v in assets_shared.items() - if (v["_clipIn"] == clip_in) - and (v["_clipOut"] == clip_out) - ), False) + # check if any clip with the same clip range + # is alerady in asset shared so + match = next(( + k for k, v in assets_shared.items() + if (v["_clipIn"] == clip_in) + and (v["_clipOut"] == clip_out) + ), False) + self.log.warning("Clip matching name: {}".format(match)) self.log.debug( "__ assets_shared[match]: {}".format(