Grasshopper

generative modeling for Rhino

I'm trying the GhPython node in Rhino 5 with the following simple code:

import rhinoscriptsyntax as rs
vec1 = rs.GetObject('pick a pt', 0)
vec1 = rs.VectorScale(vec1, 0.5)


However, i got the following error message in the Grasshopper Python Script Editor:

Runtime error (NotImplementedException): The method or operation is not implemented.
Traceback:
  line 287, in GetObjects, "C:\Users\oat\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\selection.py"
  line 3, in script


can anybody kindly advise what's wrong here?


Thanks!

Views: 120

Reply to This

Replies to This Discussion

Attachments:

 

Hi, Giulio, thank you very much for the clarification! I guess the GhPython node is different from the native Python Editor in Rhino 5 anyway.

Yes -- it is slightly different (mostly on the user interface and selection part). The rhinoscriptsyntax geometry methods are working in the same way.
- Giulio
_______________
giulio@mcneel.com

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service