I've written a script to prepare Blender models for 3d engraving. The 3d engraving software requires models to be a mesh made of triangular polygons. A typical Blender model isn't.
Usually I create models with a mix of text, curved objects, and meshes made up of quadrangular polygons. To prepare them for export involves:-
- Converting all objects to MESHs
- Selecting each object in turn and
- Selecting all vertices
- Removing overlapping vertices (Doubles)
- Converting quadrangular polygons to triangles
Or in keyboard shortcuts, A >> Alt C >> ↓ >> Enter and then for each object ⇆ Tab >> A >> W >> R >> Ctrl T >> ⇆ Tab.
If I did one model occasionally, this wouldn't be an issue. But it is lengthy and tedious when doing a series of models, repetitively. So I wrote a script that does it for me :)
"author": "John Flower",
"blender": (2, 5, 8),
"location": "View3D > Add",
"description": "Prepares a model for crystal export",
bl_idname = "screen.crystallise"
bl_label = "Crystallise"
def execute(self, context):
for ob in bpy.context.selected_objects:
# check poll() to avoid exception.
# registering and menu integration
# unregistering and removing menus
if __name__ == "__main__":