This is really a silly problem. Why I got the “string” error?
arrayclosestspoint python 01.gh (9.4 KB)
This is really a silly problem. Why I got the “string” error?
arrayclosestspoint python 01.gh (9.4 KB)
The inputs you get are Guids when just adding scripting component. The guids are interpreted as strings.
Whenever unsure about what you get I suggest you use print(type(x)) to double-check you get what you think you are getting.
You need to set the type hint for the inputs to Point3d to have them be points.
Thank you for your response. Yes, I did all of that. But what about the Guids? It should read it as points. I do not understand.