From 4f2340adea40e8c2e589387a115ae1c083041d9a Mon Sep 17 00:00:00 2001 From: Robin De Lillo Date: Mon, 23 Sep 2024 08:14:55 -0400 Subject: [PATCH] Update client/ayon_core/pipeline/editorial.py Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- client/ayon_core/pipeline/editorial.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/pipeline/editorial.py b/client/ayon_core/pipeline/editorial.py index ca62c13e7d..4b823f130f 100644 --- a/client/ayon_core/pipeline/editorial.py +++ b/client/ayon_core/pipeline/editorial.py @@ -262,8 +262,12 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end): # compute retimed range media_in_trimmed = conformed_source_range.start_time.value + offset_in media_out_trimmed = media_in_trimmed + ( - (conformed_source_range.duration.value * abs( - time_scalar) + offset_out) - 1) + ( + conformed_source_range.duration.value + * abs(time_scalar) + + offset_out + ) - 1 + ) media_in = available_range.start_time.value media_out = available_range.end_time_inclusive().value