Skip to content

XML writer not writing correct Timeline/Sequence names #485

@wrosecrans

Description

@wrosecrans

I am trying to write an FCP7 XML file with multiple sequences, but all the sequences get written with the name "tracks."

Here is a simple script to demonstrate:

import opentimelineio

names = ["Episode One", "Dubious Sequel", "Franchise Sellout"]
def write_xml(timelines):
    otio_timelines = opentimelineio.schema.serializable_collection.SerializableCollection()
    for t in timelines:
        tl = opentimelineio.schema.timeline.Timeline(name=t)
        print(tl.name)
        otio_timelines.append(tl)
    opentimelineio.adapters.write_to_file(otio_timelines, "result.xml")
    
write_xml(names)

Here is a snippet of the result XML, where I would expect the name tag to be "Episode 1" rather than "tracks"
<sequence id="sequence-1"> <name>tracks</name>

And here is the full output XML file: https://gist.github.com/wrosecrans/6746479675cf4dbec34699b2f7d603d3
I am expecting that the names would wind up in the XML. Since the Sequences have the same name, Premiere will only be able to load one of them from the XML, which isn't very useful. Is there some other way to set the timeline name that I should be using in the itio API, or is this just a limitation of the XML writer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions