algorithmic modeling for Rhino
Hi,
I found something tricky in GhPython. There are two points that I generated with GhPython. I queried their coodinates and the distance between them, they are all correct. The problem is, when I use "addLine" funtion, the result is not a line(isLine function returns false). If I query startpoint and endpoint of this line, both return none.
I am working in Rhino 5.0 May 18th version and with ghpython 0.4.1.
I uploaded the 3dm and ghx file and I clearly state the problem both in the gh canvas and the ghpython component. Hope I have made myself clear.
Thank you!
-Jerome
Tags:
Hi Jerome, we are looking into this.
- Giulio
Ok, the new version of GhPython 0.4.2 fixes this. It also has more support for RhinoScript calls (like CopyObject, see example). If you are curious to know about IsLine(), we found a bug in the way the Grasshopper-replacement document (ghdoc) was handling Lines - with the RhinoCommon Line type rather than RhinoScript's LineCurve. It is fixed now.
I am also attaching an example of how to add Grasshopper objects to the ghdoc document, so that you can use their Guid with RhinoScript (and use CopyObject, MoveObject, etc).
Finally, I modified your definition a little to use AddLine and IsLine. I hope this helps,
- Giulio
___________________
giulio@mcneel.com
McNeel Europe
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