From e2becd9494e5db9095d34dda472beb168dd2a574 Mon Sep 17 00:00:00 2001 From: "robin@ynput.io" Date: Wed, 4 Dec 2024 16:30:51 -0500 Subject: [PATCH] Rework clip_media option in ayon_core. --- .../plugins/publish/collect_plates.py | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/client/ayon_hiero/plugins/publish/collect_plates.py b/client/ayon_hiero/plugins/publish/collect_plates.py index 2b75a8f..0846829 100644 --- a/client/ayon_hiero/plugins/publish/collect_plates.py +++ b/client/ayon_hiero/plugins/publish/collect_plates.py @@ -41,38 +41,6 @@ def process(self, instance): if reviewable_source == "clip_media": instance.data["families"].append("review") instance.data.pop("reviewTrack", None) - - # Retrieve source clip media from otio clip. - # image sequence - if hasattr(otio_clip.media_reference, "target_url_for_image_number"): - file_url = otio_clip.media_reference.target_url_for_image_number(0) - sequence_length = ( - otio_clip.media_reference.end_frame() - - otio_clip.media_reference.start_frame - ) - file_names = [ - os.path.basename( - otio_clip.media_reference.target_url_for_image_number(frame) - ) - for frame in range(0, sequence_length) - ] - - # movie - else: - file_url = otio_clip.media_reference.target_url - file_names = os.path.basename(file_url) - - _, ext = os.path.splitext(file_url) - - repre = { - "name": ext[1:], - "ext": ext[1:], - "files": file_names, - "stagingDir": os.path.dirname(file_url), - "tags": ["review", "delete"] - } - instance.data["representations"].append(repre) - else: instance.data["reviewTrack"] = reviewable_source