Blender 2.82 beta, 2.83 alpha
Blender 2.82 is now in beta status, Blender 2.83 alpha is now available in daily builds for download.
Blender 2.82 is now in beta status, Blender 2.83 alpha is now available in daily builds for download.
In Blender 2.80 and 2.81, the button for blocking mesh transformations (Manipulate center points) has been moved to the N-panel, the “Tool” tab (Options – Transform – Affect only – Locations) and changed to the checkbox.
Working with mesh geometry, it may be necessary to assign each vertex some custom properties or data that must be written to the blend-file when saved, and which must be accessed later.
However, an attempt to assign the necessary data to the vertexes through the creation of custom properties fails. Instead of the custom vertex property, only a tuple with reference to the type of the property is created.
A set of operators is provided in Blender for manipulating with the location of its interface windows.
To split the current window (using the current context) into two in a specified ratio, we need to execute the following operator:
1 |
bpy.ops.screen.area_split(direction='VERTICAL', factor=0.5) |
With:
How to split and join Blender interface windows thruough the python APIRead More »
Sometimes it is necessary to save data for creating a mesh (its vertices and polygon indices arrays) to text, for example, for further use in a script or addon.
We can export the mesh to one of the open formats, for example, to *.obj, but if we need only its vertexes and polygons data, we can use the following simple script:
The Blender API provides a set of simple property types described in bpy.props (IntProperty, BoolProperty, etc.). But the basic types are not always enough, sometimes we need more complex ones. The Blender API allows to group simple properties to make complex properties.
Let’s consider such complex property creation and make the 3×3 matrix property as an example.
To get current Blender version number through the Python API we need to execute the following command:
1 2 3 |
bpy.app.version # (2, 81, 16) |
or
1 2 3 |
bpy.app.version_string # '2.81 (sub 16)' |
How to get current Blender version number through the Python APIRead More »