This question shows how to move the lowest vertex of a mesh on the grid, but the script given only works in versions before Blender 2.8: Translate object using lowest Z value python
Here is the script given:
import bpy # get a reference to the active object obj = bpy.context.object # get the minimum z-value of all vertices after converting to global transform lowest_pt = min([(obj.matrix_world * v.co).z for v in obj.data.vertices]) # transform the object obj.location.z -= lowest_pt
What is the version of this script for Blender 2.8?
Note: I have intentionally copied a similar title so the users can find the Blender 2.8 version more easily.