Hi would like a boolean list from matching a points list. Find screenshoot below:
What I’m looking for its compare both list, like shows pic below, and getting the following boolean list:
Boolean Iist looking for:
0 list
true
true
false
1 list
true
true
false
2 list
true
true
false
Thanks in advance
Hi!
Something I’d write in Python.
x = IN[0]
y = IN[1]
out = []
for i in x:
subout = []
for j in i:
try:
if j == y[x.index(i)][i.index(j)]:
subout.append(True)
else:
subout.append(False)
except:
subout.append(False)
out.append(subout)
OUT = out
If using nodes I’d cross check the items in the first list @L1 with the items in the second list. (Obj A @L1 Obj B dont use levels). Then use List.AnyTrue
@L3 to get a boolean value depending if the point is in the other list. This will not work when you have double points.