API

Disconnecting strips in Blender VSE

Starting with version 4.5, when adding new strips to the Blender video screen editor (VSE), the strip is added immediately connected to an audio track. This can be more convenient for working with the strip, as the audio track automatically follows the video when we move and drag it. However, if we need to trim or move the audio to another section of the video, we must first disconnect the video and audio tracks.

Moving the origin to the center of the mesh selection with fixing instances

The script we wrote for quickly moving an object’s origin to the selection works well. As long as instances aren’t used in the scene. Moving the origin to the selection on an instanced object will cause all instances of the object to move from their original positions to the new ones. This happens because by moving the origin relative to the object’s geometry, we’re essentially moving the geometry itself relative to its center point, and then moving this center point (origin) to the new position. For instanced objects, the origin remains in the same place, and the geometry’s offset doesn’t disappear, resulting in a jump.

Simplifying animation curves in Blender

There are cases, especially when importing from third-party packages, where animation curves in Blender become literally cluttered with numerous control points, most of which have little effect on the overall shape of the curve. Many points on a curve increases the complexity of the scene and complicates animation calculations. However, the number of points on animation curves can be easily reduced if necessary.

Switching the camera to walk/fly mode in Blender

Adjusting the camera position in Blender the usual way isn’t always convenient, especially in large, open scenes. For this reason, Blender offers the ability to switch the camera to “walk” or “fly” mode. In these modes, we can control the camera as if you were playing a first-person video game. The camera is moved using the arrow keys or the WASD keys familiar to computer gamers.

Quickly showing/hiding gizmos in Blender

Whether to use gizmos when working in Blender is a highly debated topic among 3D artists. However, even without using gizmos on a regular basis, there are times when “those arrows” could be very useful. If gizmos are hide by default in our Blender settings, we can write a simple script that will temporarily show and hide gizmos in the 3D viewport.