algorithmic modeling for Rhino
Hi, there,
I am trying to make series of points array on x and y axis. And I've already wrote a script to create points on x axis. But when i try to move the points along y axis, it failed.
I have try to do in 2 ways, but nothing works.
1. The first method is based on the coordinate. I want to change the y coordinate of points on x axis. that is to say, I want to turn [0,0,0], [1,0,0]......into [0,1,0],[1,1,0]. But due to the fact that all these points list is parts of another list:
pointList = [[0,0,0], [1,0,0]......]
So, I try to use the expression like:
[row[1] for row in pointList] += 1
It can' work.
1. The second method is to move the points on x axis along y axis, using moveobject(). The problem are:
(1). It only move the first list of pointList
(2). The movement doesn't change along the i in range(count_Y)
Is there anyone can help me?? Thanks a lot.
Tags:
Thanks a lot!!! It helps!
But I still want to know how to change the item of a multiple list, like:
a = [[0,0,0], [1,0,0], [2,0,0]......]
how to change into
a = [[0,0+i,0], [1,0+i,0], [2,0+i,0]......]
by an expression like a[2] = a[2] + i???
can that work???
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by