2
$\begingroup$

I found out that the 'active variable of a strip is read-only. Is there another way to activate and/or deactivate a strip with python? Maybe a predefined operator which I can use?

$\endgroup$
  • $\begingroup$ activate as in selected? or active as in not muted? $\endgroup$ – sambler Oct 29 '14 at 12:56
  • $\begingroup$ I don't know what you mean with muted, but I don't mean selected. The strip is deselected, but there is still a border around the strip in the nla editor $\endgroup$ – Miguellissimo Oct 29 '14 at 13:43
  • $\begingroup$ The white outline is the strip displaying it's properties in the properties sidebar. deselecting the strip by clicking out side it doesn't appear to make any difference in the vse. Muting a strip stops it showing in the output - as if it isn't there, shortcut is H to hide the strip. $\endgroup$ – sambler Oct 29 '14 at 14:04
1
$\begingroup$

try this:

import bpy
se = bpy.context.scene.sequence_editor
se.active_strip = se.sequences['0001.png']

There appears to be some lag in the UI that I'm not sure how to work around.

$\endgroup$

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.