Global: updating editorial lib with frames to timecode

This commit is contained in:
Jakub Jezek 2021-05-12 13:03:13 +02:00
parent b97c246310
commit 26fc0b49e4
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 7 additions and 0 deletions

View file

@ -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"
]

View file

@ -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.