Skip to content

Commit

Permalink
Add logging if no global scale could be found
Browse files Browse the repository at this point in the history
Signed-off-by: Éloïse Brosseau <[email protected]>
  • Loading branch information
eloisebrosseau committed Dec 12, 2024
1 parent b84582b commit ec13993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/rv-packages/otio_reader/annotation_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec13993

Please sign in to comment.