Enabling face orientation color highlighting in Blender using Python API

To enable color highlighting of mesh polygon orientation, we need to on the “Face Orientation” checkbox in the “Viewport Overlays” menu. To turn off the highlighting, we need to uncheck this checkbox. This can be done either manually or using the Blender Python API.

Coloring front and back oriented faces in Blender 4.4

Since Blender 4.4, the color scheme for displaying polygon orientation in the 3D viewport has changed. When in previous versions polygons that had the front orientation (normals are directed “outward” of the mesh) were displayed in blue, then in version 4.4 these polygons are not highlighted at all.

Calculating the angle between edges using Blender Geometry Nodes

When procedural modeling in Blender using Geometry Nodes, we often use various parameters of mesh geometry, such as the position of vertices in space, the length of edges, direction of the normals, etc. Also, quite often we need to know the angle between two adjacent mesh edges. Getting it using GN and mathematics is not difficult.

Turning on and off render passes using Blender Python API

Render passes are additional images that are created during rendering and that carry some separate additional information about the render. For example, this could be a depth map – a black and white image in which the brightness of the white color corresponds to the distance of objects from the camera. The creation of such render passes can be turned on in Blender by the user manually in the Properties area on the View Layer tab or using the Blender Python API.