def execute(self, context):
scene = context.scene
if not scene.sequence_editor:
return {"FINISHED"}
audiofile = bpy.path.abspath(scene.bz_audiofile)
name = ntpath.basename(audiofile)
all_strips = list(sorted(
bpy.context.scene.sequence_editor.sequences_all,
key=lambda x: x.frame_start))
bpy.ops.sequencer.select_all(action="DESELECT")
count = 0
for strip in all_strips:
if strip.name.startswith("bz_" + name):
strip.select = True
bpy.ops.sequencer.delete()
return {"FINISHED"}
评论列表
文章目录