select object by clicking on its center

 From:  bemfarmer
5740.2 
I do not know the answer, but noticed that for polygons, the CenterAtOrigin script does not place the center of the polygon at the origin.
It does place the center of the bounding box of the polygon at the origin.