Thanks ND I will make a note of those commands.
Yes, I realized the complexity for the algorithm looking at all the verts was O(n) and would become cumbersome for objects where n (the number of verts) becomes very large. That is why mentioned the algorithm was "convoluted" and that using the bounding box would be better since it's O(1).
I knew there was a bounding box function just never used it. It seemed to make the most sense.
I used -rpr because when I used -a (which also made the most sense to me) it did not work. I created an object moved it off the origin and froze it's transforms and then tried "move -a 0 0 0 $obj" and it did not move at all so I used the x-key and snapped to the origin the code generated was -rpr so I just went with it and did not bother to investigate why -a did not work..
NOTE: I rechecked and move -a 0 0 0 appears to move an object to its frozen 0 0 0 position not to the absolute global 0 0 0 position and therefore you must use -rpr to move an object to the global 0 0 0 position.
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
Last edited by ctbram; 29-05-2012 at 06:22 PM.