Blender add-on: M-Cleaner
Blender add-on for automatically finding and removing duplicates of materials from the scene.
Blender add-on for automatically finding and removing duplicates of materials from the scene.
The Blender 2.80 API provides the ability to draw in a viewport (3D Viewport) using the “gpu” module.
As an example let’s draw a simple coordinate system widget in the center of the scene, consisting of three lines with different colors.
Render starts in a new window in Blender 2.81 by default. And there is no more render display mode settings in the “Render” menu. These settings were moved into the “Preferences”. To configure render execution window – open the “Preferences” window, press the “Interface” button and in the “Temporary Windows” configure the “Render In” parameter as you need.
The Blender 2.81a release is enabled for downloading on the official Blender site.
Simon Thommes published his stream about making a circuit board with shader nodes in the nodevember challenge.
Due to the nodes structure changes in the latest Blender 2.81 release, all open materials in the BIS library have been updated for this version of Blender. Compatibility with younger versions of Blender could be lost (depends on the nodes used in the material).
The button click is basically connected with the operator calling in the Blender user interface. However, some times actions, that need to be performed when a button is pressed, are quite simple and do not require a separate operator for them. And it makes no sense to fill a registered operators stack with a multitude of specific operators designed to perform one highly specialized function. It would be much more convenient to associate a button press with a separate function call but the Blender API allows to associate buttons only with an operator call.
To solve the problem of creating a separate operator for each button we can use the fact that the operator can be called with the input parameters.
Calling functions by pressing buttons in Blender custom UIRead More »
To correctly set values to an EnumProperty type we need to know all its possible entries.
If we try to set a value to an EnumProperty that is out of its available variants, Blender will throw an error:
TypeError: bpy_struct: item.attr = val: enum “xxx” not found in (‘value_001′, value_002’, …)
where:
xxx – the value we tried to set to an EnumProperty
value_001, value_002, … – possible EnumProperty values
How to get a list with all possible values of an EnumPropertyRead More »
To translate cursor to the desired mesh vertex execute the following code:
1 |
bpy.context.scene.cursor.location = bpy.context.object.matrix_world @ bpy.context.object.data.vertices[_VERTEX_NUMBER_].co |
Attention to the multiplication order – world matrix should be left.