View Full Version : determining the length of a curve

03 March 2009, 04:40 PM
Is there a way, using mel, to determine the length of a curve?
I need the length from end ep to end ep of a third degree curve.
Not the distance between the ends but the lenght of the path of the curve.

03 March 2009, 04:55 PM
You can use either the arclen or arcLengthDimension commands to do this. Have a look at the command documentation

Or you can go into the API and instantiate a MFnNurbsCurve and query the length of the curve.

03 March 2009, 06:00 PM
Thanks Keilun (,
The arcLengthDimension node worked perfectly. It's a good thing I asked. I was considering attaching a whole bunch of pointOnCurveInfo nodes and about as many distanceBetween nodes to my curve.

CGTalk Moderation
03 March 2009, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.