Getting X,Y,Z coordinates by Python script

Helle everyone,

I want to get X,Y,Z coordinates through Python Script’ Code, but I did not understand that why it did not work.Could you help me? Thanks in advance.

Actually, the input is a list of points.

try to flatten before the python code, and your code is wrongs as @MINHXU98765 mentioned above.

@dungtien.humg Try this:

OUT = []
for sl in IN[0]:
	temp = []
	for p in sl:
		temp.append(p.X)
	OUT.append(temp)

OR


OUT = [p.X for sl in IN[0] for p in sl]

1 Like

Thanks you^^.