I am trying to index through a branch of points using GhPython Script. I am trying to take these points and be able to iterate through them kinda like the list item command works but within the GhPython Script so i can use this logic to do other operations. Below are things that i have tried so far.
in the first image i just draw a random curve and divide it 4 times. Then take the point data into the GhPython Script and then print the variable x. This works no problem and prints all the points in the Output.
In the second image I do the same as the first but instead try to extract one point by treating x as a list in python and it gives me error messages. I’m not sure if I just have a syntax error or if you have to treat these branches different then a list. I’m unsure what the issue is.