Connecting lines between numbered points


I’ve a script that creates a hyperboloid shape from a line, by a series of circles. These circles are divided and I would now like to connect the points with a series of lines in a numerical order. I’ve attached an image that shows what I’m trying to achieve. I also include the script itself. I want the lines to connect from side to side and connecting to each circle by a specific point. So it starts from point 1 in the first circle, goes to point 2 in the second and so on.

Anyone have any idea on how to achieve this? Any specific tutorial you can guide me to or perhaps a similiar topic here that I can read through?

Many thanks

script (12.6 KB)

script (15.3 KB)

Thank you very much! That is exactly what I was hoping to achieve! Time to continue working on it to create some cool shit!