+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22

Thread: New python component for Grasshopper

  1. #11
    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

  2. #12
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,463
    Blog Entries
    19
    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

  3. #13
    Thanks Steve!

  4. #14
    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?

  5. #15
    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

  6. #16
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,463
    Blog Entries
    19
    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

  7. #17
    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

  8. #18
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,463
    Blog Entries
    19
    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

  9. #19
    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

  10. #20
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,463
    Blog Entries
    19
    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

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts