Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAF adapter #230

Merged
merged 35 commits into from
Feb 13, 2018
Merged

AAF adapter #230

merged 35 commits into from
Feb 13, 2018

Conversation

jminor
Copy link
Collaborator

@jminor jminor commented Feb 9, 2018

Added an adapter for reading Advanced Authoring Format (AAF) compositions into OTIO.
This contrib adapter requires PyAAF 1.0.0 to work: https://github.com/markreidvfx/pyaaf/releases

jminor and others added 30 commits January 11, 2018 17:55
Turned off lots of debugging print statements.
…identical to how Avid Media Composer flattens.
jminor and others added 4 commits January 11, 2018 17:55
* Install PyAAF via wheel so the contrib AAF adapter tests run in CI.
* Make OTIO_AAF_PYTHON_LIB optional.
* Added some comments about dependencies only needed for contrib adapters.
@jminor
Copy link
Collaborator Author

jminor commented Feb 9, 2018

Addresses #1

@ssteinbach ssteinbach added the enhancement A request for something new. label Feb 9, 2018
@ssteinbach ssteinbach added this to the Public Beta 7 milestone Feb 9, 2018
Copy link
Collaborator

@ssteinbach ssteinbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some notes about some dead code that could be noted or removed, but this is really exciting and looks great!

result[child.name] = str(child.mobID)
elif isinstance(child, aaf.mob.SourceMob):
result[child.name] = str(child.mobID)
# elif hasattr(child, "name"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code - did you want to prune this out or leave this in for the future?

# self.extendChildItems([item.dictionary()])

# elif isinstance(item, DummyItem):
# self.extendChildItems(item.item)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More commented out code - did you want to prune this? Otherwise leaving a #@todo comment might help leave a note for future developers

child.source_range.duration -= after.out_offset

for c, child in enumerate(thing):
_fix_transitions(child)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like you don't need an enumerate, just a regular loop should do.

@jminor jminor merged commit 81a0888 into master Feb 13, 2018
@jminor jminor deleted the AAF_adapter branch February 16, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for something new.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants