+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 10 of 22

Thread: New python component for Grasshopper

  1. #1
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19

    New python component for Grasshopper


  2. #2
    ................ sorry ... it is work now
    Last edited by naimmohd; 05-03-2011 at 02:04 AM.

  3. #3
    ................ sorry ... it is work now but some time is not posted to the canvas

    and when i test it it gave me his message

    + no python engine available. this component needs rhino v5
    am using v5 already

  4. #4
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Are you using the latest WIP (2011-04-27)? You definitely need the latest WIP in order to use this component.
    Thanks,
    -Steve

  5. #5
    thanks Steve , its work very well after update rhino
    the tool is cool and work exactly as it was expected

    i was wondering if it is possible to allow an interactive writing panel the same way we write in ironpython editor for rhino, where components of module listed down

    another question is : whatis the purpose of : Target for rhinoscriptsyntax options ?

  6. #6
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    I don't know what you mean by an interactive writing panel. Could you post a screenshot?

    The target for rhinoscriptsyntax tells the grasshopper component where to send data. If the target is set to "In ghdoc variable" then functions like AddPoint will add a point to grasshopper. If the target is set to "Rhino document", then functions like AddPoint will add a point to the Rhino document.

    Thanks,
    -Steve

  7. #7
    thanks Steve

  8. #8
    Steve this is fantastic! Thanks!

  9. #9

    porting a simple python script to the python grasshopper component

    Hi Steve,

    Just trying out the Python grasshopper component by seeing if I could put a simple python script in with sliders for the parameters. The python works fine but when I put the code into the grasshopper component it seems to fail on these AddPlanarSrf and ExtrudeCurveStraight. When I comment out the rs.MoveObjects on lines 57 and 63 it works but does not output any of the surfaces just the curves.

    I attached the python script and the .ghx and rhino file. Can you have a look and see what might be wrong?

    Thanks,

    Chris K. Palmer
    Attached Files

  10. #10
    Hi Chris,

    nice example, thanks. Steve and I just added fixes to GhPython and Rhino.Python to make this script work, just as you wrote it.
    You will need to update at least utility.py and surface.py from here:
    - https://github.com/mcneel/rhinopytho...ipt/utility.py
    - https://github.com/mcneel/rhinopytho...ipt/surface.py
    and use the new nightly build of GhPython from here, or build from source:
    - http://www.food4rhino.com/project/ghpython

    The great thing is that the script you wrote will work untouched. There might be a few other spots that will need some review inside Rhino.Python,
    to allow the switch of rhinoscriptsyntax target to work as expected. We will fix them.

    - Giulio
    ______________
    giulio@mcneel.com
    McNeel Europe

+ 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