Hi there,

I have a list of X Y coordinates in a .csv file and would like to draw a line connecting these coordinates into a an overlayed line. I think that this macro is close, but struggling a bit:

open(“C:/User/Desktop/test/Results.csv”);

for (i=0; i<nResults; i++) {

frame = getResult(“f”, i);

x = getResult(“x”, i);

y = getResult(“y”, i);

drawline(x-1, y-1) (x-2, y2);

Overlay.addSelection;

Overlay.setPosition(frame);

}

The Results are in three columns (f,x,y). Any help would be greatly appreciated. Thanks!