I am trying to do what more or less is described in this thread How to place objects on the center of the ground plane via python? the accepted solution seems to work fine if you have only one object in the scene. However, in my case my scene is structured from individual objects thus this leads to the result all the objects to be scrambled together in the center of the plane as you can see below:
Initially my scene is like this:
By using the GUI I was able to center all the objects and maintaining the mesh structure by following these https://blender.stackexchange.com/a/26452 instructions.
Thus, I would like to know how I can achieve that in a python script.
Thanks.





