Can't call list from class

I made a script that divides a curve into a class,returns a list of points and connects this list of points with another list and so on.My problem is that it works correctly when all the things happens inside the class.But when I make instances and try to take the list of points outside the class and connect the points ,then I have a problem.Any thoughts? (1.9 KB)

Hi Liano,

You set your “flist” out of the class. In this way both instances end up with the same points returned from your “curveattractor” method. That is why you can’t make a line (points coincide).
Set your “flist” as local under your “curveattractor” method. (2.0 KB)

thank you!