Skip to content

Commit

Permalink
Parse OperationGroup Rendering property
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 abc0553 commit ccf2e68
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/otio_aaf_adapter/adapters/advanced_authoring_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,11 @@ def _transcribe_operation_group(item, parents, metadata, edit_rate, indent):
effect = otio.schema.Effect()
effect.effect_name = ""

rendering = item.getvalue("Rendering")
if rendering:
rendering = _transcribe(rendering, parents + [item], edit_rate, indent)
metadata["Rendering"] = rendering

if effect is not None:
result.effects.append(effect)

Expand Down Expand Up @@ -1627,6 +1632,12 @@ def _simplify(thing):
thing.source_range = otio.opentime.TimeRange(
duration=thing.source_range.duration)

if _has_effects(thing):
for effect in thing.effects:
rendering = effect.metadata.get("AAF", {}).get("Rendering", None)
if rendering:
effect.metadata["AAF"]["Rendering"] = _simplify(rendering)

# skip redundant containers
if _is_redundant_container(thing):
# TODO: We may be discarding metadata here, should we merge it?
Expand Down

0 comments on commit ccf2e68

Please sign in to comment.