GhPython 0.4.6 available for download - Grasshopper2024-03-29T09:06:30Zhttps://www.grasshopper3d.com/forum/topics/ghpython-0-4-6-available-for-download?commentId=2985220%3AComment%3A458310&feed=yes&xn_auth=noGlad to hear that you managed…tag:www.grasshopper3d.com,2012-06-11:2985220:Comment:6154192012-06-11T10:37:22.106ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Glad to hear that you managed to make it work. Please let the forum know with a new thread if you have any doubts, suggestions or tricks to share.</p>
<p>Thanks,</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p>
<p>Glad to hear that you managed to make it work. Please let the forum know with a new thread if you have any doubts, suggestions or tricks to share.</p>
<p>Thanks,</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com</p> Nevermind. Thank you to John…tag:www.grasshopper3d.com,2012-06-10:2985220:Comment:6148862012-06-10T20:33:39.316Zpersonhttps://www.grasshopper3d.com/profile/person
<p>Nevermind. Thank you to <a href="http://www.johndcook.com/blog/tag/ironpython/" target="_blank">John Cook</a> for contacting Enthought and getting everything back up to date - <a href="http://www.enthought.com/repo/.iron/" target="_blank">numpy/scipy on Iron Python</a>. Also, ironpkg is pretty great, like macports and yum but for this particular version of Windows python.</p>
<p>Nevermind. Thank you to <a href="http://www.johndcook.com/blog/tag/ironpython/" target="_blank">John Cook</a> for contacting Enthought and getting everything back up to date - <a href="http://www.enthought.com/repo/.iron/" target="_blank">numpy/scipy on Iron Python</a>. Also, ironpkg is pretty great, like macports and yum but for this particular version of Windows python.</p> hey giulio, i'm trying to get…tag:www.grasshopper3d.com,2012-06-07:2985220:Comment:6129752012-06-07T06:14:39.260Zpersonhttps://www.grasshopper3d.com/profile/person
<p>hey giulio, i'm trying to get started with numpy with ghpython. I have an instance the numpy source from sourceforge, but i'm having difficulty getting it running with ghpython. do i need to use the specific flavor of numpy on enthought (per the link in the gh def) and if so, do you know of another link to download this module?</p>
<p></p>
<p>thanks, k</p>
<p>hey giulio, i'm trying to get started with numpy with ghpython. I have an instance the numpy source from sourceforge, but i'm having difficulty getting it running with ghpython. do i need to use the specific flavor of numpy on enthought (per the link in the gh def) and if so, do you know of another link to download this module?</p>
<p></p>
<p>thanks, k</p> Yes, the implementing librari…tag:www.grasshopper3d.com,2011-10-21:2985220:Comment:4583102011-10-21T20:28:00.648ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Yes, the implementing libraries for Python are only present in Rhino 5, and for this version of Python, called IronPython, we also need .Net 4.0. This is also a Rhino 5-only thing.</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com<br/>McNeel Europe</p>
<p>Yes, the implementing libraries for Python are only present in Rhino 5, and for this version of Python, called IronPython, we also need .Net 4.0. This is also a Rhino 5-only thing.</p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com<br/>McNeel Europe</p> Does this only work in Rhino…tag:www.grasshopper3d.com,2011-10-21:2985220:Comment:4578952011-10-21T19:47:16.212ZAndrew Lyonhttps://www.grasshopper3d.com/profile/AndrewLyon
<p>Does this only work in Rhino 5?</p>
<p>Does this only work in Rhino 5?</p> Great! Thanks for the tips.tag:www.grasshopper3d.com,2011-08-22:2985220:Comment:3876292011-08-22T21:28:22.045ZHarold Stranghttps://www.grasshopper3d.com/profile/HaroldStrang
Great! Thanks for the tips.
Great! Thanks for the tips. Thanks Giulio!tag:www.grasshopper3d.com,2011-08-22:2985220:Comment:3872422011-08-22T21:12:49.267ZBenjamin Golderhttps://www.grasshopper3d.com/profile/BenjaminGolder
Thanks Giulio!
Thanks Giulio! Hi Harold,
very nice script…tag:www.grasshopper3d.com,2011-08-22:2985220:Comment:3876262011-08-22T20:58:55.533ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Hi Harold,</p>
<p> </p>
<p>very nice script.</p>
<p>The 'Goo' thing is due to the fact that Grasshopper itself does not understand tuples. I could fix it for this special case, but then again should this very tuple be a Vector, a Point, or Lists of 3 numbers in Grasshopper? It's probably just wiser to keep tuples like this (they are a special Python construct after all).</p>
<p>The fix in the script, however, is very simple. Change curvepointlist.append(pt) to…</p>
<p>Hi Harold,</p>
<p> </p>
<p>very nice script.</p>
<p>The 'Goo' thing is due to the fact that Grasshopper itself does not understand tuples. I could fix it for this special case, but then again should this very tuple be a Vector, a Point, or Lists of 3 numbers in Grasshopper? It's probably just wiser to keep tuples like this (they are a special Python construct after all).</p>
<p>The fix in the script, however, is very simple. Change curvepointlist.append(pt) to curvepointlist.append(rs.AddPoint(pt)) on line 24.</p>
<p>This will make RhinoPython tranform the tuple into a Guid, and the object will marshal nicely and quickly as the type that you expect it to be.</p>
<p>I hope this helps,</p>
<p> </p>
<p>- Giulio<br/>________________<br/>giulio@mcneel.com<br/>McNeel Europe</p> This works much better now, b…tag:www.grasshopper3d.com,2011-08-22:2985220:Comment:3873312011-08-22T20:42:22.355ZHarold Stranghttps://www.grasshopper3d.com/profile/HaroldStrang
<p>This works much better now, but I'm still having issues passing lists out of the python component to grasshopper components. Perhaps I just don't understand the correct way to do it. When I make a list of points and use the rs.AddInterpCurve(curvepointlist) function, it works fine, but if I try and pass the list of points to the Grasshopper IntCrv component it fails: "Error: Data conversion failed from Goo to Point ..."</p>
<p> </p>
<p>I've attached a sample file.</p>
<p> </p>
<p> </p>
<p>This works much better now, but I'm still having issues passing lists out of the python component to grasshopper components. Perhaps I just don't understand the correct way to do it. When I make a list of points and use the rs.AddInterpCurve(curvepointlist) function, it works fine, but if I try and pass the list of points to the Grasshopper IntCrv component it fails: "Error: Data conversion failed from Goo to Point ..."</p>
<p> </p>
<p>I've attached a sample file.</p>
<p> </p>
<p> </p> thanks Giulio!!! it is great!tag:www.grasshopper3d.com,2011-08-16:2985220:Comment:3755552011-08-16T08:19:42.139ZTommaso Casuccihttps://www.grasshopper3d.com/profile/Tommaso
thanks Giulio!!! it is great!
thanks Giulio!!! it is great!