Grasshopper

algorithmic modeling for Rhino

Hi,

I developed a python script for rhino which works just fine in RhinoPython but in the Pyhton Component for Grasshopper I get the following error:

Runtime error (MissingMemberException): 'NoneType' object has no attribute 'IsPointInside'
Traceback:
line 997, in IsPointInSurface, "C:\Users\Win7Pisa\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\surface.py"
line 16, in InsideTest, "<string>"
line 45, in main, "<string>"
line 51, in script

has anyone an idea what that can be?

THX!

Views: 1051

Replies to This Discussion

Hi Geef,

it is going to be difficult to tell without the code or a sample.
But maybe: are you having a None element among inputs?

- Giulio
________________
giulio@mcneel.com

Hi Giulio,

thx for your quick reply.

That's what I thought first.

but I tried a really simple example now and get the same error.

see image below...

Attachments:

Yes, I see. Just as a courtesy, please post the file next time.

I discovered a small bug inside the surface.py module. We need to modify a little its content to make it also work in GhPython. You can download the latest version from this GitHub page, or just wait for next week's Rhino 5.

To do it on your own: locate the surface.py module on your system (see this post, answer 0), replace the file and restart Rhino.

Cheers,

- Giulio
_______________
giulio@mcneel.com

Hi Guilio,

sorry for not posting the file...

It's working now!

Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service