Python ‘int’ object has no attribute ‘X,’ but how then I can get the X or Y or Z coordinates?
0100 python attribute x coor.gh (2.4 KB)
Python ‘int’ object has no attribute ‘X,’ but how then I can get the X or Y or Z coordinates?
0100 python attribute x coor.gh (2.4 KB)
The error is here:
y = pList[str]
pnt = str
You define “y” but it is already an input, you shouldn’t do that.
Just replace those 2 lines with:
pnt=pList[str]
(to see it is working you could add “a=box” at the end…)