I want to duplicate the active strip and place the duplicate strip in the next available channel above the original.

I have been doing this manually by shortcut shift+D then dragging the strip manually above. The code behind shift+D is:

TRANSFORM_OT_seq_slide={"value":(0, 0), "snap":False,
"snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False,
"snap_normal":(0, 0, 0), "release_confirm":False})

In this code how do I specify to move up by one channel the duplicated movie strip?


If you look at the info panel when you shift+D you do get that python there, but that only duplicates the strip and snaps it to the end of the first strip. If you move it to above the existing strip, it also uses bpy.ops.transform.seq_slide(value=(-26,1)) where -26 is to move the strip the number of frames of the strip(original is 26 frames) and the 1 is positive direction next channel. If you automate it, you will need to have the python look get the number of frames of the strip and use that where the -26 is.

| improve this answer | |
  • $\begingroup$ Thanks Craig, just the job, I'm lovin this scripting thing! $\endgroup$ – reggie Jan 19 '17 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.