Seems to work here without crashing… Are you just trying to get a ghosted, dimensioned bounding box for an object? You might try this script instead… (dimensions are text dots)
It’s possible to add all that into the script… However, if you are just looking to move the objects from their bb center to 0 without actually creating the box or the dimensions, that’s a lot easier/simpler, here’s one from my library…
Mitch, If the model is not selected before run the joint script in the command line pops the question:
“Pick objects for bounding box”
How to remove this question?move and boudingl.rvb (4.1 KB)
It works as it should!
Only if you can not add a point in the center?
It was necessary only for the old algorithm only to find the center and a snaped for it to move.
Even if the object is initially selected after the script selection is not removed. Can whether deselect after running the script?