-
Notifications
You must be signed in to change notification settings - Fork 278
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
FCP XML: Support appropriate top-level objects beyond project #514
Comments
What is in the |
AFAICT, "Project" literally just has Children and a Name: (Where "Children" can just be Clips, Timelines, or Bins) It can probably be mostly ignored for OTIO schema sake, and treated as a Collection like a Bin that is at the top/root level. (And any comment/label metadata applied to the top level collection just wouldn't survive being written to xmeml, because the Project isn't supposed to have them.) |
Ah, yup. That sounds like a |
Right now the FCP XML adapter writes out timeline objects under a project. The FCP XML spec designates you can actually have
project
,bin
,clip
, andsequence
objects as top level.Given the OTIO data model, the best analogues would be to switch on the object type passed to the adapter to write and map as follows:
Timeline
->sequence
SerializableCollection
->bin
I don't think there is a reasonable analogue for
project
in otio. Perhaps passing a single otioClip
object could write a top-levelclip
, however I think it's much more in-line with otio usage to write aSerializableCollection
top-level.For import, I think the behavior should be:
project
and there is only one child element, it's object will be returned as the top-level object, otherwise aSerializableCollection
will be returned.xmeml
tag or a single clip, these will be returned in aSerializableCollection
sequence
is returned as aTimeline
bin
is returned as aSerializableCollection
Elements of this behavior exist already, but this could be more fleshed out.
The text was updated successfully, but these errors were encountered: