hmm… i haven’t looked at what exactly you’re trying to accomplish with the script but if i understand correctly, your MoveObject line shouldn’t be inside the loop then…
the loop can be used to generate the list but then whatever you want to do with that list should be outside the loop instead of indented along with it.
as it’s set up now, each time it goes through the loop, it’s going to move the same point over and over…
or-- if the loop is set up to go through 100 times… the first object which is added to the list will be moved 100 times… then the next item will be moved 99 times etcetc… when really, i think you’re trying to get 100 vectors then move 100 points with those vectors… instead of thousands of moves.
but hey, i’ve gotta go do some errands and breakfast… if someone hasn’t looked at this by the time i’m back, i’ll try to better understand what the loop is doing and offer any advice i can come up with… that said, there are a thousand people at this forum more qualified than i to give scripting advice so hopefully one of them will come along first
i don’t know if this will help or add confusion but… i made a simple script the other day which has a loop in it, it moves points, and it generates a list…
the code can be seen in this post:
link to orignal thread
import rhinoscriptsyntax as rs
import math
ptlist = []
cPt= rs.coerce3dpoint([0,0,0])
angle = math.radians(15)
angleD = 15
x=0
y=1
z=0
ptlist.append(rs.AddPoint (x,y,z))
x= math.tan(angle)*y
for i in range(1,102):
y= x/math.sin(angle)
x= math.tan(angle)*y
point=rs.AddPoint(x,y,z)
rs.RotateObject(point,cPt,-angleD * i)
ptlist.append(point)
rs.AddInterpCurve(ptlist)
so while it’s inside the loop, the points are being moved (rotated) as they’re created… they are then added to a list but i don’t use the list until after the loop is finished when a curve is drawn through points in the list…
if all i wanted to do was rotate (or move) the points, i wouldn’t of needed the list… so if all you’d like to do is move the points, i don’t think you’ll need the list either. (but again, i’m not 100% sure on the goal of your script yet)