Python problem with PointArrayClosestPoint Python

This is really a silly problem. Why I got the “string” error?

arrayclosestspoint python (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.

Right click on the input of the script component and choose type Point3d

for X input right click and select it to be list access:

1 Like