X-LOOKUP in Dynamo

Can anyone help me to implement X-Lookup in dynamo using python script.
This is what i tried to achieve! Please help!

import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# The inputs to this node will be stored as a list in the IN variables.
m=IN[0]
n=IN[1]
x=[]
i=[]
c=[]
e=[]
for ind, i in enumerate(m):
	if i in n:
		c.append(i)
		i.append(ind)
	else:
		e.append(i)
		x.append(ind)
OUT= e, x, set(c), i

your variables are too complicated but I got what you want.

1 Like

Wow super! This is working .
Thank you very much

1 Like