Read the comments in the project to see how to use it.
Measuring script by @griffpatch. Everything else made by me.