3
$\begingroup$

I want to use python to create a series of strips and group them into a meta-strip. I have noticed there are several new_ methods on scene.sequence_editor.sequences such as new_clip(), new_effect(), new_image(), new_mask(), new_movie(), new_scene(), new_sound() but there is not one for the meta-strip.

What is the proper API to use to create a meta strip from several other strips?

def make_meta(scn, strip_list):
    # magic goes here

strip_list = make_parts(scn)
make_meta(scn, strip_list)
$\endgroup$
1
$\begingroup$

There might be no low-level RNA method to create or make a meta strip, but you can still use the operator:

bpy.ops.sequencer.meta_make()

Make sure you select all relevant strips before you call it.

$\endgroup$
  • 1
    $\begingroup$ Although I hate the awkwardness of using anything from bpy.ops, I was able to make it work (in the tail end of make_strip_from() at web.purplefrog.com/~thoth/blender/python-cookbook/… ) $\endgroup$ – Mutant Bob Jul 5 '14 at 18:36
  • 2
    $\begingroup$ Wondering if there's a better way to do this by now. $\endgroup$ – tremby Apr 21 '16 at 1:00

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.