how to traverse the line segment automatically

I have 10 points along a line, how to set the camera to zoom and traverse the line automatically? I’d very appreicate for your help! Thanks.

You would use a timer and a data list of the points.

int point[10][3] = { {7 ,4 ,5} , …};// 10 points for camera.

int time;
int view;

time is how long to wait before changing view, where points[view] vector is the point the carera is looking at.

As time how long you move between the two set points. points[view] to points[view+1].