Skip to content

Commit

Permalink
Parse and decode effect_id
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Reid <mindmark@gmail.com>
  • Loading branch information
markreidvfx committed Apr 3, 2024
1 parent ccf2e68 commit ac19f50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/otio_aaf_adapter/adapters/advanced_authoring_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,15 @@ def _transcribe_fancy_timewarp(item, parameters):
# raise


def _get_effect_id(item):
effect_id = _get_parameter(item, 'AvidEffectID')
if effect_id:
try:
return bytearray(effect_id.value).decode("utf8")
except Exception:
return None


def _transcribe_operation_group(item, parents, metadata, edit_rate, indent):
result = otio.schema.Stack()

Expand All @@ -1128,6 +1137,10 @@ def _transcribe_operation_group(item, parents, metadata, edit_rate, indent):
otio.opentime.RationalTime(length, edit_rate)
)

effect_id = _get_effect_id(item)
if effect_id:
parameters["AvidEffectID"] = effect_id

# Look for speed effects...
effect = None
if operation.get("IsTimeWarp"):
Expand Down

0 comments on commit ac19f50

Please sign in to comment.