def execute(self, context):
selection = bpy.context.selected_sequences
if not selection:
return {'CANCELLED'}
selection = sorted(selection,
key=attrgetter('channel', 'frame_final_start'))
if self.direction == 'up':
for s in reversed(selection):
s.channel += 1
elif self.direction == 'down':
for s in selection:
if (s.channel > 1):
s.channel -= 1
return {'FINISHED'}
# TODO: find a way to get the selection bounding box and place it
# where there is space for it?
评论列表
文章目录