pull/6/head
florentin.luce 2024-05-28 14:58:49 +02:00
parent 61f6ec3896
commit 15bd62be2f
1 changed files with 9 additions and 9 deletions

View File

@ -225,6 +225,8 @@ class VSETB_OT_auto_split(Operator):
strips = get_strips(channel=self.movie_channel_name)
i = 1
frame_start = self.frame_first
for strip in strips:
if strip.type != 'MOVIE':
@ -236,8 +238,6 @@ class VSETB_OT_auto_split(Operator):
process = auto_splitter.launch_split(strip, self.threshold, frame_start=self.frame_first, frame_end=self.frame_last)
i = 1
frame_start = self.frame_first
for line in process.stdout:
# Get frame split from the movie timeline (not from blender strips timeline)
@ -267,13 +267,13 @@ class VSETB_OT_auto_split(Operator):
process.wait()
# Last strip:
if frame_start < self.frame_last:
create_shot_strip(
f'tmp_shot_{str(i).zfill(3)}',
start=frame_start,
end=self.frame_last
)
# Last strip:
if frame_start < self.frame_last:
create_shot_strip(
f'tmp_shot_{str(i).zfill(3)}',
start=frame_start,
end=self.frame_last
)
return {'FINISHED'}