Skip to content

Commit b944ce8

Browse files
committed
Improve comments
1 parent 99a3891 commit b944ce8

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

opentimelineio/adapters/cmx_3600.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,21 @@ def write_to_string(input_otio, rate=None, style='avid'):
615615
if isinstance(next_clip, otio.schema.Transition):
616616
a_side, trans, b_side = clip, next_clip, next_next_clip
617617

618-
# Add a line to represent this, SHORTER, event
618+
# Transitions in EDLs are unconventionally represented.
619+
#
620+
# Where a trasition might normally be visualized like:
621+
# A |---------------------|\--|
622+
# B |----\|-------------------|
623+
# |-----|---|
624+
# 57 43
625+
#
626+
# In an EDL it can be thought of more like this:
627+
# A |---------------|xxxxxxxxx|
628+
# B |\------------------------|
629+
# |---------|
630+
# 100
631+
632+
# Event line to represent this "shorted" A side
619633
a_side_line = EventLine(
620634
kind=kind,
621635
edit_number=edit_number,
@@ -637,6 +651,7 @@ def write_to_string(input_otio, rate=None, style='avid'):
637651
# Advance the edit number
638652
edit_number += 1
639653

654+
# Event line to represent the "longer" B side
640655
b_side_line = EventLine(
641656
kind=kind,
642657
edit_number=edit_number,
@@ -655,7 +670,7 @@ def write_to_string(input_otio, rate=None, style='avid'):
655670
):
656671
b_side_line.reel = 'BL'
657672

658-
# Add a line to represent the middle cut
673+
# Event line to represent the middle cut
659674
cut_line = EventLine(
660675
kind=kind,
661676
edit_number=edit_number,

0 commit comments

Comments
 (0)