Blender add-on: Swords Constructor
Swords Constructor – the Blender 3D graphical editor add-on for easily creating different variations of swords and sword-like objects from a set of library elements and quickly manage their configuration.
Swords Constructor – the Blender 3D graphical editor add-on for easily creating different variations of swords and sword-like objects from a set of library elements and quickly manage their configuration.
Blender add-on “TimeMe” v.1.4.0 update.
Blender Python API autocomplete modules: fake-bpy-modules by Nutti update – added branch for Blender 2.92.
Last release: 2021.03.04.
Author GitHub: https://github.com/nutti/fake-bpy-module
Only files (without pip installation) https://github.com/Korchy/blender_autocomplete
To manipulate object transformations with matrices, Blender includes the “mathutils” module in which the “Matrix” class is defined. With this class, you can simply create the necessary transformation matrices – translation, rotation, and scale.
The following command is used to create a scale matrix:
1 2 3 |
from mathutils import Matrix scale_matrix = Matrix.Scale(SCALE_VALUE, MATRIX_SIZE, AXIS) |
The classic way of localizing a Blender add-on (translating it into different languages) is convenient because requires just a single Blender Python API call – to get the currently used locale. This way is maximum universal, but Blender would not be Blender if it did not provide users an ability to localize add-ons through its own API.
The principle of creating multilingual add-ons using the Blender Python API is not much different from the classical one – we need to create a dictionary with all the variants of translations for all text strings from our add-on and use this dictionary in the localization.
When referring to the mesh geometry – its vertices, edges, and polygons, Blender operates with the original data without the usage of modifiers added to the object.
For example, the number of vertices of the active object, we can get with the following command:
1 |
len(bpy.context.active_object.data.vertices) |
And it will be returned without considering the object’s Subdivision modifier, which modifies the mesh’s geometry, increasing it.
Blender add-on “Save Selected” updated to v. 1.0.2.
In order to navigate to an URL-address from Blender – to open the required address in the browser, we can use the system operator “wm.url_open”.
To demonstrate this let’s create a simple tab in the N-panel with a single button, by clicking on which the required page will be opened in the browser.