Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import bpy
  2.  
  3.  
  4. def gap_strips(strips, gap):
  5. strips = sorted(strips, key=lambda strip: strip.frame_start)
  6.  
  7. for i in range(1, len(strips)):
  8. st0 = strips[i-1]
  9. st1 = strips[i]
  10. st1.frame_start = st0.frame_start + st0.frame_final_duration + gap
  11.  
  12. def gap_selected_strips(scn, gap):
  13. gap_strips( [ strip for strip in scn.sequence_editor.sequences if strip.select], gap)
  14.  
  15.  
  16. gap_selected_strips(bpy.context.scene, 15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement