Eh, really? that's not the case on my end though..try to make a 10x10x10 box and put it at x=10 y=0 z=0, run the script, since the box dimension is 10 and the target dimension also 10, the box wont scale but it move from x=10 to x=20 to x=40 etc each time you run the script. By right it shouldn't be moved since the scale…
Damn nice man, thanks! never thought of doing it that way :) Still not fully understand the math solution you have on the fn, will look into it more next time, but for now it's all works as expected! Well thought I just posted here the complete version of the script that I have for now, probably anyone will benefit from it…