Skip to content

Python OTIO reader: clip_if() no longer exists in bundled OTIO 0.18 - #323

Open
soupkitchenfilms wants to merge 1 commit into
AcademySoftwareFoundation:developfrom
soupkitchenfilms:pr/develop-otio-reader-find-clips
Open

Python OTIO reader: clip_if() no longer exists in bundled OTIO 0.18#323
soupkitchenfilms wants to merge 1 commit into
AcademySoftwareFoundation:developfrom
soupkitchenfilms:pr/develop-otio-reader-find-clips

Conversation

@soupkitchenfilms

Copy link
Copy Markdown

api/auxiliary/otio/reader.py calls otio.clip_if(), which was removed from OpenTimelineIO (find_clips() replaced it in 0.15). With the bundled otio 0.18.1 the python-side timeline import raises AttributeError on every use.

Also guards media references that carry no target_url attribute (e.g. ImageSequenceReference) — previously the next line would raise AttributeError on those clips.

Supersedes #309, re-based onto develop (same one-commit fix; the bug is still present there — reader.py line 95).

…ps()

The bundled opentimelineio is 0.18.1, where Timeline.clip_if() no longer
exists (find_clips() replaced it in 0.15), so import_timeline() raised
AttributeError on every use. Also guard media references that carry no
target_url (e.g. ImageSequenceReference) instead of crashing on attribute
access.

Signed-off-by: soupkitchenfilms <13426391+soupkitchenfilms@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant