Skip to content

Instantly share code, notes, and snippets.

Avatar

Ed Halley hariedo

View GitHub Profile
View set_mesh_origin_to_bottom.py
#
# Object > Set Mesh Origin to Bottom
# A python script compatible with Blender 2.90 API.
#
# Takes the currently selected mesh-type objects,
# and moves the object origin location to the "bottom" of the mesh.
# The bottom is calculated as the average X and Y and the minimum Z.
#
# This is useful in 3D Printing, for example, when importing published
# STL geometry files. Typically the bottom of the shape is flat and