python script to move another object when a certain object is moved Suppose I have a cube and a sphere. I want to write a python script such that when I move the cube by a vector (x,y,z), the sphere also moves by the same vector. I want to be able to move the cube by hand, and have the sphere move automatically. I realize that I can do this by selecting both before moving, but I would like to accomplish this with code. Is this possible?
You can use drivers to do this, or use a constraint. The constraint is probably the fastest option (performance-wise), as they are written in C.

If you want you can even add drivers or constraints via Python, in case you want to have scripted control over those.