# Get length of Bezier curve with python? (For driver)

Is there a way to get the length of a Bezier curve in Python such that I can use it in a driver?

• developer.blender.org/D1810 Mar 1 '16 at 9:41
• If you know the control points of bezier (which you do with 12 driver variables - 4 points each 3 axis) you can calculate the exact length in a PyDriver like this: steve.hollasch.net/cgindex/curves/cbezarclen.html. However it is much cheaper to segment the curve and approximate with those segment lengths. Mar 1 '16 at 10:01