-
Notifications
You must be signed in to change notification settings - Fork 309
Closed
Labels
bugA problem, flaw, or broken functionality.A problem, flaw, or broken functionality.
Description
Bug Report
When exporting to FCP XML, markers always have an out
of -1. This is because the value is hardcoded here.
<marker>
<comment>Shot ID 12123483</comment>
<name>...</name>
<in>4906</in>
<out>-1</out>
</marker>
To Reproduce
- OS: Mac OS 12.3
- Python version: 3.9.7
- Example Snippet:
Generating a marker with the following code and serializing it to FCP XML results in an out
of -1 even when duration is > 0:
marker = otio.schema.Marker(
name=name,
marked_range=otio.opentime.TimeRange(
start_time=mark_in,
duration=(mark_out - mark_in),
),
metadata={
"fcp_xml": {
"comment": comment,
},
},
)
timeline.tracks.markers.append(marker)
- OpenTimelineIO commit hash: cbef407 (current head of
main
at time of writing) - Compiler information:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
Expected Behavior
If the Marker's marked_range.duration.value
> 0, I expect the value of out
to be marked_range.start_time + marked_range.duration.value
.
Additional Context
I have a fix for this locally that I'm happy to PR but I'm not really sure if there's a good reason for it to be hardcoded to -1. If so let me know and I'll close this issue!
Metadata
Metadata
Assignees
Labels
bugA problem, flaw, or broken functionality.A problem, flaw, or broken functionality.