First off, i'm new to pymel, but loving how much it improves python in maya.
I have a nurbsCurve PyNode, and a point (float array) and i'd like to get the param value of the closest point. I cant figure out the syntax to get this to work. This works, but returns a point(float array): <code> point = [1,1,1] closestPoint = myNurbsCurve.closestPoint(point) </code> This doesn't: <code> point = [1,1,1] param = 0.0 closestPoint = myNurbsCurve.closestPoint(point,param) </code> Neither does this: <code> point = [1,1,1] su = OpenMaya.MScriptUtil() paramPtr = su.asDoublePtr() closestPoint = myNurbsCurve.closestPoint(point,paramPtr) param = su.getDouble(paramPtr) </code> --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
