feat(nks): adding comment making more clear the process

This commit is contained in:
Jakub Jezek 2020-05-12 17:46:20 +02:00
parent 8f3f3a4d92
commit 4342db71ce
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -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(