and says "repeat every Nth element", meaning say if N was 3, I would get A B C C D E F F G H. I would also like to be able to then insert a list of 3 elements in between each of the repeats. For example, I wanted to insert: 1. 1
2. 2
3. 3 into the list, I would get A B C 1 2 3 C D E F 1 2 3 F G H. It seems like an easy task, but I cannot for the life of me figure out how to do it, I must be making a very basic mistake. I am new to grasshopper, so any and all help I could get would be GREATLY appreciated!…
ap value = True
Shift List = 1 --> (B,C,D,A)
Shift List = 2 --> (C,D,A,B)
You can also use negative values.
Shift List = -1 --> (A,B,C)
Shift List = -2 --> (A,B)
and with Wrap = True
Shift List = -1 --> (D,A,B,C)
Shift List = -2 --> (C,D,A,B)
The most useful Shift List action I use is to either get rid of the first or last item in a list and sometimes both.
Shift list = -1 --> (A,B,C) Shift list = 1 --> (B,C)
In the example posted above you are creating a shift list value equal to its location along the curve. The first section = 0 doesn't get shifted, the second section gets a shift = 1, third = 2, forth = 3 and because the wrap value is set to true the fifth section gets back to 0, sixth = 1 etc etc. creating the twisting effect.
The "one more stupid question" answer is Mass Addition. You will find the component on the Math tab or you can type it into the Keyword search feature (by double clicking the canvas). This component has two outputs a total amount for each list and a partial set of results giving:
List (3,6,9,12)
{0} = 3
{1} = 3+6 = 9
{2} = 3+6+9 = 18
{3} = 3+6+9+12 = 30…
the branch?
i.e.
{0;0} {1;0} {2;0} {2;1} {3;0} {3;1} {3;2}
a a a c a c e
b b b d b d f
in order to get
{0} {1} {2} {3}
a a a + c a + c + e
b b b + d b + d + f
I have tried using GH_Path, treedata.Paths etc.
but have no idea how to perform a looping in the second dimension of a tree.
Any ideas?
Many Thanks!!…
I have a set of points (A) pulled by 3 other points (B,C,D). B,C, and D are only pulling the closest to themselves. Is there a way to find out how many points are pulled to B,C, and D individually?