Skip to content

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

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

Python OTIO reader: clip_if() no longer exists in bundled OTIO 0.18#309
soupkitchenfilms wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
soupkitchenfilms:pr/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.

…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 <[email protected]>
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

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