In Blender 2.8x the undo/redo operation system (ctrl+z / ctrl+shift+z) has been completely rebuilt. One of the results of this API change is when the undo operation is performed, all objects in the scene are fully recreated – the current object is destroyed, and a completely new object is created instead. Pointers to the old objects (before the undo operation) now point to invalid objects that can no longer be used.
Add-ons are not reloaded by pressing the F8 key in the Preferences – Add-ons window in Blender 2.83. The add-ons reload function call with this key shot was no longer tied starting with Blender 2.80.
To bind the add-ons reloading to the F8 key shot again:
- Open the “Preferences” window
- Open the the “Keymap” section
- Expand the “Screen – Screen (Global)” branch
- Press the “Add new” button at the bottom of the list
- In the operator identifier field, type “script.reload”
- Click on the keyboard field and press F8 to bind this key to the specified operator call
- Press the “Save Preferences” button to save new settings
Blender 3D add-on for quick and easy materials overrides in the EEVEE render engine.
Blender 3D add-on for redirecting the print output and the error messages to the Python Console window.
When you make a button in a custom UI to call the operator with passing the necessary parameters to it, pay attention that only the parameters specified explicitly will be sent to the operator. Other operator parameters will remain with default values.
For example, we need to execute the “transform_apply” operator – applying object transformations with applying just the scale.
If we call the operator as follows:
bl_idname = 'TESTPANEL_PT_panel'
bl_label = 'Testpanel'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'Testpanel'
def draw(self, context):
self.layout.operator('context.object.transform_apply', text='Apply Scale').scale = True
But all transformation (scale, rotation, and position) will still be applied to the object.
Overview of the Blender “FLIP Fluids” add-on for simulating fluids version 1.0.8a.
by Pavel Blend
Blender 3D add-on for making specification tables for the project.
Making neon from the mesh with the Neoner add-on
Blender add-on for setting render region border with exact values and easily manage it.
The direction of a Bezier curve, visually indicated by its normals slope, can be checked by the indices of its points.
The Bezier curve points indices always ascending in the curve direction.
So, having two points on the curve we can get the direction through their indices:
bezier_spline = bpy.context.object.data.splines
p0 = bezier_spline.bezier_points
p1 = bezier_spline.bezier_points
p0_index = next(iter([point for point in bezier_spline.bezier_points.items() if point == p0]), None)
p1_index = next(iter([point for point in bezier_spline.bezier_points.items() if point == p1]), None)
direction = 'p0 to p1' if p0_index < p1_index else 'p1 to p0'
# p0 to p1