scripts curves


#1

Hallo! Imagine simple situation. Have two lines, both with sharp edges at the points- because I draw it Curve degree in 1Linear. Then I place one curve with it starting point close to another line middle (one of points) and snap these points together. After that in script editor mel window I give comand select one line, then hilite curve and then starting from cv0, then up, and again up. But I need some kind of script who take each vertex values- x y z each time and base of these value it give comand select around it closest another curve, if there is so. In the middle there is that curve. I have autodesk maya 2014, that is just begining. Thanks!

I was trying put this tred in general discussion, but cant find it.