Grasshopper

algorithmic modeling for Rhino

I tried to use this python script in the python gh component and it gets the same error: 

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid
Traceback:
line 467, in coerceguid, "C:\Users\Irina\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
line 532, in coercecurve, "C:\Users\Irina\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
line 1081, in CurveEndPoint, "C:\Users\Irina\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py"
line 5, in fractalization, "<string>"
line 27, in kochcurve, "<string>"
line 32, in script

What is wrong? Thanks.

Views: 1644

Attachments:

Replies to This Discussion

When using rhinoscriptsyntax functions you usually have to use Guids. You can set this manually by assigning type hints to your input parameters on the GHPython component like so:

Right-click the input parameter -> Type Hint -> Select the one called "ghdoc object".

I have attached your file with this fix. Hope that helps..

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service