BPY plus – vse module
A BPY plus module to simplify work with Video Sequence Editor (VSE).
With the Python API we can customize Blender interface as we need. For example, we can place the most frequently used operators to the header (top menu) of any workspace area. This way we can assemble our own ribbon with “quick favorite” buttons.
When rendering animations in Blender, it’s often necessary to save one single frame for later use as a preview. Of course, we can do this manually, after finishing the animation rendering, switch to the desired frame and separately render it. However, with the Blender Python API, we can organize the automatic saving of the desired frame during the animation render.
Render a single frame for preview when rendering animationRead More »
To add a new strip to the Sequence Editor programmatically, we need to know the channel number to place it. We can get the number of an empty channel in the Sequence Editor throug the Blender Python API by walking through the list of sequences already added to the Sequence Editor.
Getting the next empty channel number in Sequence Editor with the Blender Python APIRead More »
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.
Adding video strip to the VSE sequencer with Blender Python APIRead More »
We can switch to the desired tab in the Properties window through the Blender Python API by changing the “context” value in the desired workspace area.
Switching tabs in the Properties window with the Blender Python APIRead More »
The “face_strength” parameter is used in the Weighted Normal modifier to calculate normals. We can set and change its values by calling a special operator, or directly getting and setting its values through the Blender Python API.
Accessing face_strength property from Blender Python APIRead More »
If it is necessary to exclude all nodes of a certain type from the shader calculation, they can be muted by their type. The muted node remains in the node tree, retaining all links, but doesn’t affect the final result.
Custom properties in the Blender Python API can be limited to setting with maximum and minimum values. In this case, the user, entering the desired value to the property field, will not be able to set a value that goes beyond the specified limits.
To set the minimum and maximum limits, we can specify the “min” and “max” parameters in our custom property and assign them the necessary limiting values.