fix import edit
parent
c43d1b3f35
commit
206aec490f
|
@ -265,6 +265,12 @@ def import_edit(filepath, adapter="cmx_3600", channel='Shots', match_by='name'):
|
||||||
strips = get_strips(channel='Shots')
|
strips = get_strips(channel='Shots')
|
||||||
shot_channel = get_channel_index('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)
|
edl = Path(filepath)
|
||||||
try:
|
try:
|
||||||
timeline = opentimelineio.adapters.read_from_file(
|
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')
|
print(f'The strip {strip.name} is updated with new range')
|
||||||
#self.report({'INFO'}, 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_start = frame_start
|
||||||
strip.frame_final_end = frame_end
|
strip.frame_final_end = frame_end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue