Grasshopper

algorithmic modeling for Rhino

Thanks to Steve and Giulio, a new version (0.6.0.3) of the ghPython scripting component for Grasshopper is available on food4Rhino

Major new features:.

  • Node-in-Code: almost every Grasshopper component is now callable in ghPython

  • Multi-threading: now easy for ghPython scripts to execute on multiple threads

Download here...

Views: 5729

Replies to This Discussion

Ok, thanks. Please keep me posted!
I would really like to make sure that this new version works also for you.

Thanks,

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Okay... upgrading to SR6 made everything work just perfect :).

Sorry about that, I was sure that Rhino was set to update automatically - I guess the IT dep. disabled that.

Thanks for you quick reply and help. 

And to you guys for this great update!

Rasmus

No problem at all. Thanks for letting us know!

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

This is very interesting. I have Rhino 5 SR5 and Grasshopper 0.9.0064 and did not experience any problems. If SR6 is required, does that mean that some ghpython functions might not work? For example "Custom Preview" does not work

I'm having issues with the component:

import ghpythonlib.components as ghcomp
 
results in:
Runtime error (FormatException): Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Traceback:
line 105, in __build_module, “C:\Users\sander\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\ghpythonlib\components.py”
line 126, in , “C:\Users\sander\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\ghpythonlib\components.py”
line 1, in script
Previous posts make me think a botched sr6 install left a stale rhinocommon.dll, C:\Program Files\Rhinoceros 5.0 (64-bit)\System\rhinocommon.dll properties -> 5.6.31028.18305
Downloaded service pack release candidate, rh50Release_x64_en-us_5.7.31207.07545.msi
Let's try that. edit: nope.

Reinstalling rhino from scratch

...

Yup, uninstalled all rhinoz (32/64) all plugz, downloaded dujour rh50_en-us_5.7.31207.07545.exe install gh 0.9.64.0 ghpython.

works.

Probably the trailing updates left some stale crumbs here and there.

The guid issue is due to some plug-in recently created by the new wizard.
Just check that the GH_AssemblyInfo-derived class does not contain dollar signs ($). They were introduced by a recently-fixed bug in the wizard.

Thanks

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Nice going Giulio and Steve!!

If this makes it possible to represent grasshopper definitions with python scripts, does this mean there are plans for the ability to export your grasshopper definition as a python script? Because that would be amazing. Just wondering.

Note that the python code relies on Grasshopper to execute those operations. So you'll always need Grasshopper installed and running for these scripts to work.

--

David Rutten

david@mcneel.com

Hi!

I was very excited to start using the new scripts, but for some reason it just doesn't work for me.
Any ideas what I might be doing wrong? 

Thanks

Seems like you did not change the "x" input's object type from "ghDoc object" to "Curve".
Does that solve the problem?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service