Hi, I’m relatively new to Grasshopper, so I’m still trying to learn all the components.
I have a set of points from a hexagonal x/y grid, where the Z values for the some of the points are nonzero. I want the algorithm to look at each points 6 neighbours and if at least one of them is > than 0, then the Z value of this point should be changed to 25.
I created a list with the Z values of the points from the hexagonal grid. For each point there is a paths with 7 indices. The first index (marked as y in the screenshot) is the index of the Z value of the main point, the other 6 indices (marked with x) are the Z values of the 6 neighbouring points. Now I want the algorithm to look at the the Indices 1-6 and if any of them is more than 0, then change the value of index 0 to 25.
I tried to do it with an If statement and different components, especially the List components. However after trying and searching for 2 days, I still have no progress. Would be really grateful for any help. Thanks in advance!
30.11.2020_Question.gh (23.1 KB)