Skip to content

Commit

Permalink
Rework clip_media option in ayon_core.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Dec 4, 2024
1 parent 879319a commit e2becd9
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions client/ayon_hiero/plugins/publish/collect_plates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e2becd9

Please sign in to comment.