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!
Tags:
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...
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.
- Giulio
_______________
giulio@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by