algorithmic modeling for Rhino
Attached is a .gh file that demonstrates my problem
The python script is supposed to accept a mesh, define a box, and then find the closest point on the mesh to the center of that box. When i try to do this using python scripting component, the MeshClosestPoint returns "none." [This is demonstrated in the yellow panels]
Alternatively, when I do this using the given grasshopper components I get the right result [demonstrated in the green panel].
I have a feeling this has something to do with my lack of understanding of what is actually being returned when I try to access the box / center point. Never programmed in python or rhino scripting. Hopefully this is a stupid mistake. Thanks for the help!
-mike
Tags:
Try setting the type hint on the "mesh" input.....
wow!
it worked.
Did not know that was necessary. I think of "hint" as optional!
Thank you, Chris.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by