For loop, moveobject does not move according to series of vector

Hi, I was trying a simple python code for moving a box along z vector according to a series of vector by using a ‘for’ loop to create a series of boxes along z direction, however the code turns out to be a mass addition of vectors rather than a series of vectors that move the boxes, anyone know why? thanks!

import rhinoscriptsyntax as rs

b = []

for i in range(0, max, step):
    a = rs.MoveObject(x,[0,0,i])

Sounds like you want:


You could also do this in one line:

a = [rs.CopyObject(x,[0,0,i]) for i in range(0, max, step)]
1 Like

Thanks so much for solution, I should learn more about the difference between copyobject and moveobject… move does not create new geometry ID…