Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More consolidations on Hiero OTIO exporter #40

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions client/ayon_hiero/api/otio/hiero_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,15 @@ def create_otio_clip(track_item):

media_reference = create_otio_reference(clip)
available_start = media_reference.available_range.start_time
conformed_start_value = available_start.value_rescaled_to(fps)
source_in_offset = otio.opentime.RationalTime(
source_in,
available_start.rate
)
src_in = available_start + source_in_offset
conformed_src_in = src_in.rescaled_to(fps)

source_range = create_otio_time_range(
conformed_start_value + source_in,
conformed_src_in.value, # no rounding to preserve accuracy
duration,
fps
)
Expand Down
Loading