mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Global: updating editorial lib with frames to timecode
This commit is contained in:
parent
b97c246310
commit
26fc0b49e4
2 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ from .editorial import (
|
|||
trim_media_range,
|
||||
range_from_frames,
|
||||
frames_to_secons,
|
||||
frames_to_timecode,
|
||||
make_sequence_collection
|
||||
)
|
||||
|
||||
|
|
@ -246,5 +247,6 @@ __all__ = [
|
|||
"trim_media_range",
|
||||
"range_from_frames",
|
||||
"frames_to_secons",
|
||||
"frames_to_timecode",
|
||||
"make_sequence_collection"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -137,6 +137,11 @@ def frames_to_secons(frames, framerate):
|
|||
return _ot.to_seconds(rt)
|
||||
|
||||
|
||||
def frames_to_timecode(frames, framerate):
|
||||
rt = _ot.from_frames(frames, framerate)
|
||||
return _ot.to_timecode(rt)
|
||||
|
||||
|
||||
def make_sequence_collection(path, otio_range, metadata):
|
||||
"""
|
||||
Make collection from path otio range and otio metadata.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue