Combine values to a nested list

Let’s say I want to judge every coordinate of a list.
First, I need to make the guide be recognized as a list of X,Y,Z coordinates.
Then, I have to add a value, let’s take -2, to judge them.

It will look something like:
[[0,0,2],[-2]],
[[0,0,3],[-2]],
[[0,0,4],[-2]],
[[1,0,2],[-2]],
[[2,0,2],[-2]]

Why I combine these together? Because I want to give every coordinate a value and change those values later through the proces to manipulate the list.

01AA problem combine values.gh (14.8 KB)

Why would you want to combine those lists? You can access the information through their shared indices for every point. If you want to check the value for pList[i] just access pList_val[i]. Don’t overcomplicate things :wink:

1 Like