From 7b60b82cc0311f2f3673d486a3252b21d8440211 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Tue, 9 Apr 2024 13:59:55 +0200 Subject: [PATCH] Update ayon_core export_otio.py: Refactor data attribute names and success message. - Renamed data attributes to attrib for frame calculations - Corrected success message typo from "successfull" to "successful" --- client/ayon_core/plugins/load/export_otio.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/ayon_core/plugins/load/export_otio.py b/client/ayon_core/plugins/load/export_otio.py index b3f8e0aaec..fc1d58cd64 100644 --- a/client/ayon_core/plugins/load/export_otio.py +++ b/client/ayon_core/plugins/load/export_otio.py @@ -2,7 +2,7 @@ from collections import defaultdict from qtpy import QtWidgets, QtCore, QtGui -from ayon_api import get_representations, get_folder_by_id +from ayon_api import get_representations from ayon_core.pipeline import load, Anatomy from ayon_core import resources, style from ayon_core.pipeline.load import get_representation_path_with_anatomy @@ -216,10 +216,10 @@ class ExportOTIOOptionsDialog(QtWidgets.QDialog): representation, anatomy ), "frames": ( - version["data"]["frameEnd"] - - version["data"]["frameStart"] + version["attrib"]["frameEnd"] - + version["attrib"]["frameStart"] ), - "framerate": version["data"]["fps"] + "framerate": version["attrib"]["fps"] } self.export_otio(clips_data, output_path) @@ -227,7 +227,7 @@ class ExportOTIOOptionsDialog(QtWidgets.QDialog): # Feedback about success. show_message_dialog( "Success!", - "Export was successfull.", + "Export was successful.", level="info", parent=self )