I’ve got a python script linked to a blender object. Is there a way to determine how far the object has moved from one frame to the next.
At the moment I’m measuring the distance from a fixed datum, but that only works as long as the object is moving in a straight line away from the datum.
I suppose I could place an empty aligned with the object, then move to the next frame and measure the distance back to the empty. I just need to make sure that the empty is positioned on the object for frame 1, using on onLoad script perhaps.
Is there a better way?