def execute(self, context):
selection = sorted(bpy.context.selected_sequences, key=attrgetter('frame_final_start'))
time_move = selection[0].frame_final_start - bpy.context.scene.frame_current
selection = reversed(selection)
empty_channel = find_empty_channel()
for s in selection:
if s.type in SequenceTypes.VIDEO or s.type in SequenceTypes.IMAGE or s.type in SequenceTypes.SOUND:
s.frame_start -= time_move
return {'FINISHED'}
评论列表
文章目录