Permalink
Browse files

Now passing track_kind to transition/dissolve creation in RV adapter (#…

  • Loading branch information...
avrata authored and jminor committed Nov 30, 2018
1 parent 7962d19 commit 7150bba1568e4f88f675abb16124a43e56c154bc
Showing with 5 additions and 4 deletions.
  1. +5 −4 opentimelineio_contrib/adapters/extern_rv.py
@@ -196,7 +196,8 @@ def _write_track(in_seq, to_session, _=None):
for thing in items_to_serialize:
if isinstance(thing, tuple):
result = _write_transition(*thing, to_session=to_session)
result = _write_transition(*thing, to_session=to_session,
track_kind=track_kind)
elif thing.duration().value == 0:
continue
else:
@@ -213,7 +214,7 @@ def _write_timeline(tl, to_session, _=None):
return result
def _create_media_reference(item, to_session, track_kind=None):
def _create_media_reference(item, src, track_kind=None):
if hasattr(item, "media_reference") and item.media_reference:
if isinstance(item.media_reference, otio.schema.ExternalReference):
media = [str(item.media_reference.target_url)]
@@ -229,13 +230,13 @@ def _create_media_reference(item, to_session, track_kind=None):
# Appending blank to media promotes name of audio file in RV
media.append(blank)
to_session.setMedia(media)
src.setMedia(media)
return True
elif isinstance(item.media_reference, otio.schema.GeneratorReference):
if item.media_reference.generator_kind == "SMPTEBars":
kind = "smptebars"
to_session.setMedia(
src.setMedia(
[
"{},start={},end={},fps={}.movieproc".format(
kind,

0 comments on commit 7150bba

Please sign in to comment.