3dsmax from 2010 to 2022
This tool is free to use.
A maxscript Controller to measure and expose the distance traveled by an object.
select an object, a point or something else
run the script
in the modify panel, clic on Pick Reference button and pick the object you want to mesure travel distance.
Now, if you animate the object in autokey, you will see the value changing.You can use it in wire Parameter or in expressions or script controllers