-
Hi Guilio and Steve,
Thanks for the update!
I put the nightly build .gha into the grasshopper components file but don't know where or how to update the utility.py and surface.py files. I searched for them on my windows 7 64bit laptop but could not find them. Am I missing something simple?
Looking forward to trying it,
Chris
-
Senior Member
Hi Chris,
Here is a discussion topic on copying the python files to the correct directory
http://python.rhino3d.com/threads/43...tClosestObject
Thanks,
-Steve
-
-
Hi Steve,
I updated the files and installed the nightly build. I still get this error:
Runtime error (UnboundNameException): global name 'obect_ids' is not definedTraceback:
line 217, in AddPlanarSrf, "C:\Users\Chris\AppData\Roaming\McNeel\Rhinoceros\ 5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\surface.py"
line 30, in <module>, "<string>"
Is that a typo?
-
I fixed the typo but now there is another error:
Runtime error (TypeErrorException): iteration over non-sequence of type NoneTypeTraceback:
line 505, in MoveObjects, "C:\Users\Chris\AppData\Roaming\McNeel\Rhinoceros\ 5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 485, in MoveObject, "C:\Users\Chris\AppData\Roaming\McNeel\Rhinoceros\ 5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 63, in <module>, "<string>"
This may be beyond what I can fix.
Thanks,
Chris
-
Senior Member
That was a typo on my part. Thanks for finding it. Get the latest version
https://github.com/mcneel/rhinopytho...ipt/surface.py
and it should be fixed now.
Thanks,
-Steve
-
Hi Steve,
I updated all the files and still get the error in the object.py file related to moveObject. Do you not get that error?
Thanks for all your attention to this little test,
Chris
-
Senior Member
Hi Chris,
It looks like you may be passing None to the MoveObjects function on line 63 in your script. I made a bunch of changes to the python scripts in order to work better with ghpython, but this also required a few changes to RhinoCommon. You might want to wait until the next WIP is released to test this.
Thanks,
-Steve
-
Hi Steve,
Thanks for having a look. I guess the rhino python script is more forgiving. I'll have a look again later. It is just playing around with a hello world nothing important that can't wait.
Chris
-
Senior Member
If you are willing to share the script with me, I would love to figure out what is going wrong. It very well could be a bug in my scripts.
Thanks,
-Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules