API

Removing custom normals from all selected objects in Blender

Most often, we need to clear custom normals when importing objects from external scenes. We can remove custom normals manually by selecting meshes in the scene and pressing the Clear Custom Split Normals Data button in the Properties panel on the Data tab of the object. However, if there are many such objects, we can write a simple script using Blender Python API that will quickly clear the normals on all selected objects.

Removing a modifier from all selected objects using Blender Python API

Assigning and removing modifiers in Blender is done separately for each object. However, if we need to, for example, remove a modifier from many objects in a complex scene, removing them from each object individually will be long and inefficient. Using the Blender Python API, we can write a simple script that will remove modifiers from all selected objects in the scene.

Moving a material from one object material slot to another in Blender

To move a material from one material slot to another, we can click the up or down arrow button in the object’s material panel. In this case, the material in the currently selected slot will move up (or down) by one position. This method of moving and sorting materials is very slow and not very convenient.