Sometimes you need to know the length of a curve for some setups; for a while I sometimes used an addon called jsCurveLength.

However, the way it’s designed relies on the existance of the addon to evaluate. Without it, your rig is broken. I’ve made a version which is self-contained, so when you export your rig you don’t need to tell people to install any addon.

Select your curve(s) and run this code from either a button or the Script Editor. Here’s the JavaScript:

1 comment so far

Add Your Comment
  1. Thank you very much for making this available to the public. Honestly, it’s beyond me why such a simple but important property isn’t available by default w/o any scripting requirements.

    Very good work, works perfectly here.