Hie,
I am trying make my first script in python but i have this problem. I was looking in the forum but i couldn´t solve it.
Thanks.
Looks like a problem in the direction. Can you share a full screenshot or the gh file?
1 Like
Right-click the Direction
input parameter and set the type hint to Vector3d
. You can set the MidPoint
type hint to Point3d
and skip the coercing step as well.
Edit: See this article for context:
1 Like
Just for completeness, I noticed an error in the article I linked to above:
This is, of course, not the case for GHPython components (if I’m reading it right, the phrasing is a bit ambiguous @scottd), but is true for the C#, VB and the new RhinoCode components.
1 Like
Thanks so much.
1 Like