Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to get an agent to trace over a mesh. I've been using the python code as algorithmicdesign.net.

I understand that the data input type on the python component needs to be a list type.  However I am getting an error which seems more about the python plugin.

I've attached the gh and .3dm files. 

The python plugin i am using is ghpython_1.gha

Any advice would be incredible appreciated

Views: 389

Attachments:

Replies to This Discussion

Regarding error messages and your claim that GHPython does not provide sufficient debugging information. That is simply not accurate:


It's fine that you don't like Python, but please don't spread inaccurate claims. Anywho, to debug the traceback you start from the bottom (so 196) and jump to the next error (line 191), you'll eventually see that the error is caused by passing unexpected data to a function in the rhinoscriptsyntax module (coerce3dvector). You can open the Python file with this function (utility.py) using a code/text-editor and inspect it further to figure out why it returned an error. As you can probably tell, copying/pasting code is indeed not always plug-and-play and may require substantial analysis and debugging of the code (not to mention the underlying logics that it implements).

Sidenote: All this GUID/coercing business can be avoided entirely by calling the underlying RhinoCommon classes/methods directly, instead of indirectly through rhinoscriptsyntax. There are several threads on the virtues of both approaches, which are worth reading up on for anyone planning to go further with GHPython.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service