Blender

Creating inputs and outputs for node groups in Blender 4.0 using the Python API

In Blender 3.6 and earlier, inputs and outputs for node groups could be created by calling the new() command for the list of inputs or outputs of the node tree. In Blender 4.0, the developers made changes, and the creation of input and output sockets for node trees was moved to the “interface” object.

Doo-Sabin mesh subdivision using Blender Geometry Nodes

Doo-Sabin mesh subdivision based on a generalization of bi-quadratic uniform B-splines, as opposed to the more commonly used Catmull-Clark subdivision, which is based on generalized bi-cubic uniform B-splines. We can create a Doo-Sabin mesh subdivision using Blender Geometry Nodes with just two nodes.

Optimizing the speed of data access using foreach_()

The Python language used in the Blender API is very loyal and undemanding when it comes to data typing. However, when working with large amounts of data, the universalization of type conversion can negatively affect the speed of the code. For example, the simplest foreach_get() cycle, which takes data from a set of elements and puts it into an array, can be significantly speeded up simply by choosing the right type of the destination array data.