Skip to content

Commit

Permalink
Refactor clip uniqueness check logic and key formation.
Browse files Browse the repository at this point in the history
- Adjusted condition for clip inclusion
- Added new key formation for clip uniqueness
- Updated the list used for duplicity check
  • Loading branch information
jakubjezek001 committed Nov 7, 2024
1 parent f56e5ef commit 6c060de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/ayon_flame/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,16 +628,20 @@ def _convert_to_marker_data(self):
then skip this clip and do not add to hierarchical shared
metadata to them.
"""
if self.clip_in < hero_in and self.clip_out > hero_out:

if self.clip_in < hero_in or self.clip_out > hero_out:
continue

_distrib_data = deepcopy(hero_data)
_distrib_data["heroTrack"] = False
# form used clip unique key
data_product_name = hero_data["productName"]
new_clip_name = hero_data["newClipName"]

# get used names list for duplicity check
used_names_list = self.vertical_clip_used.setdefault(
data_product_name, [])
f"{new_clip_name}{data_product_name}", []
)
self.log.debug(
f">> used_names_list: {used_names_list}"
)
Expand Down

0 comments on commit 6c060de

Please sign in to comment.