0
$\begingroup$

Moving strips which are used in conjunction with an effect strips will cause errors if moved(with python) without the effect strips, and most of the effect strips can't themselves be moved because their frame_final_start/end values can't be set. So I need to detect if a strip(ex. movie) is used in conjunction with an effect strip ex. as part of a cross dissolve. How do I do that?

$\endgroup$
1
$\begingroup$

All effect strips that have locked frame values have the 'input_1' attribute (which is set to another strip), so detecting a strip of this type is as simple as:

if hasattr(strip, 'input_1'):

You can also check for transition effects by looking for 'input_2' in the same way.

$\endgroup$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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