Adding video strip to the VSE sequencer with Blender Python API

The Blender Python API can be very useful not only for working with meshes or nodes but also when editing video files in the Video Sequence Editor.

 

We can add a new video strip to the VSE sequencer by executing the following command:

with:

name – here we can set any convenient name for further reference to the strip by name,

filepath – full path to the video file,

channel – track number on which the added strip will be placed,

frame_start – frame number to which the beginning of the strip will be set.

We can refer to the added strip in the future by the given name:

For example, to set the blending mode:

The “Alpha Over” mode indicates that the strip should be blended with others by the background transparency.

5 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments