Returning curve length values for use with MEL

I'm trying to write a MEL script which requires the length value of a point on a curve, measured from the start of a NURBS curve. The "arcLen" tool is useful for returning the length of an entire curve but not for a point in the middle of the curve. I can display this value on screen by using the "arcLengthDimension" command but this does not return the length value, nor does the node created seem to have any attributes from which the displayed value can be obtained. The only way I seem to be able to access the required value is by reading the "arcLengthDimension" from the screen and then manually inputing it back into the script! There must be an easier way but I can't seem to figure it out, any help would be greatly appreciated.

Many Thanks,

Fred

don't have it up in front of me, but if I remember right there is a dimension attribute on the SHAPE of the node you're using.. check that out and see if it works.

cheers!
-jason


jason schleifer
animator
weta digital