New python component for Grasshopper
................ sorry ... it is work now
Last edited by naimmohd; 05-03-2011 at 02:04 AM.
................ 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
Are you using the latest WIP (2011-04-27)? You definitely need the latest WIP in order to use this component.
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 ?
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.
Steve this is fantastic! Thanks!
porting a simple python script to the python grasshopper component
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?
Chris K. Palmer
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:
and use the new nightly build of GhPython from here, or build from source:
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.