From ff3ac56750a9d35770ded502b50827815ab5ee9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lo=C3=AFse=20Brosseau?= Date: Thu, 12 Dec 2024 11:40:51 -0500 Subject: [PATCH] Add logging if no global scale could be found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Éloïse Brosseau --- src/plugins/rv-packages/otio_reader/annotation_hook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/rv-packages/otio_reader/annotation_hook.py b/src/plugins/rv-packages/otio_reader/annotation_hook.py index 32423925e..0a461ca81 100644 --- a/src/plugins/rv-packages/otio_reader/annotation_hook.py +++ b/src/plugins/rv-packages/otio_reader/annotation_hook.py @@ -60,6 +60,9 @@ def hook_function(in_timeline, argument_map=None) -> None: global_scale = argument_map.get("global_scale") if global_scale is None: + logging.warning( + "Unable to get the global scale, using the aspect ratio of the first media file" + ) try: first_source_node = commands.sourcesAtFrame(0)[0] media_info = commands.sourceMediaInfo(first_source_node)