5.1

Finding the active polygon in a BMesh object

The BMesh object certainly offers greater functionality and capabilities for working with mesh data compared to the standard data set stored in the object’s “data” property. However, some aspects of managing mesh data in a BMesh object aren’t always obvious. For example, consider the rather trivial operation of getting the currently active polygon.

Changing the volume of selected audio strips in Blender VSE

To set the desired volume for multiple audio strips at once in Blender VSE, select them, then in the Properties panel, in the Strip tab, in the Sound section, type the desired number in the Volume field, hold down the Alt key, and press Enter. Holding the Alt key changes the volume for all selected strips; if we don’t hold it down, the volume will only change for the currently active strip. We can also change the volume for all selected audio strips at once using the Blender Python API.

Automatically muting strips added to Blender VSE

When creating videos in Blender VSE, it’s often necessary to separately create a silent video sequence and only then overlay separately prepared audio tracks onto the edited video stream. However, when adding a video strip to VSE, it is added along with its audio track, with the audio also connected to the video. Separating the audio and video tracks is not difficult, but it takes time. Let’s write a small script that will automatically detach the audio from the video in a strip added to VSE and completely delete the original audio track.

Quickly adding a mirror modifier to a mesh in Blender

Using the Mirror modifier greatly simplifies the modeling process on symmetrical objects. To properly optimize a mesh for use with this modifier, we should always delete the part of the mesh that will be mirrored; otherwise, we’ll immediately end up with duplicate geometry, which will lead to problems with further editing and shading. This geometry cleanup process can be optimized with a simple script that automatically removes unnecessary points and adds the modifier to the mesh.