mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
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"
This commit is contained in:
parent
330a4294fa
commit
7b60b82cc0
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue