Finding the topmost bone in a rig using the Blender Python API
When working with a complex rig, it’s sometimes necessary to quickly find the topmost bone. Since all bones in the rig are linked using a parent-child relationship, we can write a simple script that will traverse the entire hierarchy, starting with the currently active bone, and find the topmost bone.
Finding the topmost bone in a rig using the Blender Python APIRead More »
Creating procedural glass with imperfections material in Blender
Creating procedural glass with imperfections material in Blender by Lewis Animation.
Selecting dangling geometry in Blender
The non-manifold geometry in 3D objects—such as individual points, edges, or polygons floating in space, as well as holes in a solid mesh—is selected in Blender using the 3D viewport menu: Select – Select All By Trait – Non Manifold. This command can also be executed using the Blender Python API via the bpy.ops.mesh.select_non_manifold() operator. If we’re working with geometry through a BMesh object, there’s no such special operator. However, we can select such non-manifold geometry ourselves.
Create a new polygon for active object in Blender using BMesh and assign UV coordinates to its vertices
When creating new geometry in Blender using the Python API, we often need to not only create new polygons but also immediately assign them the correct UV coordinates. When working with a BMesh object, this could be done using MeshLoop links between geometry verices and UV points.
Creating procedural waffle material in Blender
Creating procedural waffle material in Blender by Ryan King Art.
Finding the active polygon in a BMesh object
The BMesh object certainly offers greater functionality and capabilities for working with mesh data compared to the standard data set stored in the object’s “data” property. However, some aspects of managing mesh data in a BMesh object aren’t always obvious. For example, consider the rather trivial operation of getting the currently active polygon.

.blend file on Patreon



Buy on Blender Market
Buy on Gumroad
