fix import edit

pull/5/head
ChristopheSeux 2023-07-11 16:56:35 +02:00
parent c43d1b3f35
commit 206aec490f
1 changed files with 7 additions and 0 deletions

View File

@ -265,6 +265,12 @@ def import_edit(filepath, adapter="cmx_3600", channel='Shots', match_by='name'):
strips = get_strips(channel='Shots')
shot_channel = get_channel_index('Shots')
# Move all strips on an empty channel
empty_channel = max((s.channel for s in sequencer), default=0) + 1
for s in strips:
s.channel = empty_channel
edl = Path(filepath)
try:
timeline = opentimelineio.adapters.read_from_file(
@ -320,6 +326,7 @@ def import_edit(filepath, adapter="cmx_3600", channel='Shots', match_by='name'):
print(f'The strip {strip.name} is updated with new range')
#self.report({'INFO'}, f'The strip {strip.name} is updated with new range')
strip.channel = shot_channel
strip.frame_final_start = frame_start
strip.frame_final_end = frame_end