length output to study table

After a discover run, there is a distance between two centroids that I wish to output for each frame. I can see them when I run the animation, but how do I export them to a study table?
Thanks.