no worries Marcus, got it, what about this: ##################################################### import pymel.core as pm
crv1 = pm.PyNode('curve1') crv2 = pm.PyNode('curve2') loc = pm.createNode('locator') locTransform = loc.getParent() loc.setParent(crv2, s=True, r=True) pm.delete(locTransform) cpoc = pm.createNode('nearestPointOnCurve') # connect ep[1] to locator local position pm.connectAttr(crv2.editPoints[1], loc.localPosition, f=True) crv1.worldSpace[0] >> cpoc.inputCurve loc.worldPosition[0] >> cpoc.inPosition closestPnt = cpoc.position.get() cmds.spaceLocator(n='closestPointLoc',p=closestPnt) ##################################################### just need to create two curves near to each other and the locator created ('closestPointLoc') shows the closest point. I just need there to be a Knot created on the curve at the position of this locator... does this make sense? thanks, Sam -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/06f81a42-6504-4d7a-8e97-e75b9c05df54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.