Moving the Auto Smooth modifier to the end of the modifier list

Since version 4.1, the normal smoothing operator in Blender has been completely replaced by a modifier implemented on the Geometry Nodes mechanism. This is convenient for solving a number of problems, but if the Auto Smooth modifier is not located on the last place in the modifier stack, before other modifiers that change the mesh geometry, this leads to the appearance of artifacts. To quickly move the Auto Smooth modifier to the end of the stack, we can use a simple script.

Working with Mean Bevel Weight using the Blender Python API

To interact with the Bevel modifier, which creates a bevel on specified edges, each of the required edges must be given a specific numeric weight parameter ranging from 0.0 to 1.0. In manual mode, the weight for the bevel is set in the N-panel on the Item tab in Edges Data – Mean Bevel Weight field. This weight can also be read and set via the Blender Python API.

Working with sharp edges using Blender Python API

In Blender, we can mark the edges of the mesh as sharp so that they remain sharp and do not become smooth even when we enabling smooth shading. This can be done manually by selecting the desired edges and pressing the Edge – Mark Sharp items in the main menu. Edges can also be marked as sharp using the Blender Python API.