a seed, and instead creating a pattern where each color has a seed/control slider for each row? For example, row 1: brown 2, tan 6, yellow 7, purple 3, repeat. row 2: brown 6, tan 1, yellow 4, purple 10, repeat. row 3: yellow 5, purple 1, brown 3, tan 10, repeat. row 4: purple 2, brown 7, tan 3, yellow 4, repeat. Then repeat that sequence up the wall? For each color, the number in the sequence should be adjustable.
Thank you again for your help!…
oning behind using the equality component to test for even numbers is flawed because of the data matching used by gh. It is testing like this:
0==0 True
2==1 False
4==2 False
6==3 False
etc
.............
Where as a Modulo 2 would work like this
0%2 = 0
1%2 = 1
2%2 = 0
3%2 = 1
4%2 = 0
5%2 = 1
6%2 = 0
7%2 = 1
8%2 = 0
9%2 = 1
......
Also I notice you have some errors in your expressions producing Nulls.
If you want it to be twice the value then you should have 2*D in the Expression and 10*D in the other
....
I attach a working version.…
0;0} (N=50)
will probably Graft as
(Paths = 50)
{0;0;0} (N=1)
{0;0;1} (N=1)
and so on ...
A set of data with multiple lists with a structure like
(Paths = 5)
{0;0} (N=10)
and so on ...
will also Graft as
(Paths = 50)
{0;0;0} (N=1)
{0;0;1} (N=1)
and so on ...
Given this example, you should be able to match up values from list one to list two.
Keep in mind, with the above example there are the same number items in each (50).
If you want to restructure a flat list of values (50) into a structure with, say, 10 paths with 5 items each, that is a different story and a good question. Perhaps someone else can chime in on that ...…
operate on the data from your own components.
2) Put your 2D array data inside a Grasshopper.Kernel.Types.GH_ObjectWrapper instance, which is a class that can be used to transmit non-standard data through wires. Again, you'll only be able to use this from your own components.
3) Create your own data-type (implement IGH_Goo) as a 2D array.
4) (and my favourite) store your 2D data in a DataTree instead. All grasshopper data is stored in trees and it's possible to mimic a 2D array this way. For example, you could create a tree like this:
{0} N = 10
{1} N = 10
{2} N = 10
{3} N = 10
{4} N = 10
This would be analogous to a 2D matrix of 5 x 10.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…