Grasshopper

algorithmic modeling for Rhino

Hi all,

I am not new to py and gh or usage of node in code feature. I havn't used py on gh for a long time and now after few months i m unable to call in the feature. Is it something to do with python path allocations... ???

Tia.

Views: 1058

Replies to This Discussion

Giulio recently advised against using ghpythonlib (unless you really really need to!)

Marcus Strube and Anders Holden Deleuran   can u plz brief out whats happening ???

Any suggestions to fix it ??? 

1) Don't use ghpythonlib (as per the link above).

2) Don't have syntax errors (in this case you're accessing a namespace with the dot operator without calling anyhing!)

i get that part ..true and very obvious rc are fast , i m relying on ghcomps for voronoi like structures which otherwise would be more lines of code to recreate.

I was trying to call voronoi and it didn,t work as per example provided .... Autosuggestion ain't working... which means its failing to call ghlibcomps..

You can access the underlying Grasshopper methods directly by importing the Grasshopper assembly. This example goes back quite a few years, but still seems to work. I imagine this would be the fastest way of calling these functions using GHPython (although, my old script could probably do with some profiling!):

Here is what happens when i download Steve Baer's example from his blog.

Hey Shridhar,

had the same problem with the example file from Steve:

http://discourse.mcneel.com/t/gh-python-error-importing-ghpythonlib...

Removing the Vipers gha solved it in my case.

Cheers,

David

Vipers ???   Ok the plugin. Thank u David.. problem solved .

 Anders  this is great. Super fast and non conventional  gh py approach.any more direction(papers/blog/support) towards making such approaches ???

Thanks.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service