danilo2
Swann - exactly I was looking for solution using only one VOP node - so I will be very thankfull if you publish yours file again (if yo got the solution) )
I'm switching to writing Vex slowly so this is my one node solution.
float sumLenght(vector v; int number, test)
{
float pointDist;
float sumL = 0;
vector points;
while(test < number)
{
int suc = import(“P”, points, 0, test++);
pointDist = distance(points, v);
sumL += pointDist;
}
return sumL;
}