import rhinoscriptsyntax as rs def MoveObjsBBCtrToW0(): objs = rs.GetObjects("Select objects to center at world 0", preselect=True) If Not objs: return rs.EnableRedraw(False) origin = rs.coerce3dpoint([0, 0, 0]) For obj In objs: bb = rs.BoundingBox(obj) If bb: ctr = (bb[0]+bb[6])/2 rs.MoveObject(obj, origin - ctr) MoveObjsBBCtrToW0()