Grasshopper

algorithmic modeling for Rhino

How to use rhino commands or grasshopper components in Python?

Hi,

Sometimes I have no idea which library I should import into python to use some commands in rhino. I tried to import Rhino library and Grasshopper library but I didn't find such functions or any similar ones. For example, I want to add an arrowhead to a curve. In rhino I can directly use "arrowhead" command and select a curve to do this. But I don't know how to realize this in python. And, in grasshopper, I can use "EvaluateLength" component while I don't know how to call this function in python.

So, what I mean is how to convert these rhino and grasshopper things to python.

Views: 2313

Replies to This Discussion

Import RhinoScript syntax as rs

Import math

and so on...

Try This site for tutourials.

Also go through This pdf 

Thank you very much! I have solved this problem!

使用蚂蚱组件在Python,你可以导入ghpythonlib.components https://stevebaer.wordpress.com/使用Python的犀牛命令,你可以RhinoScript语法或进口犀牛等

十分感谢,你解决了我的问题。

这个箭头的问题我是在grasshopper 的python里尝试的,结果用rs.CurveArrows发现返回值只是一个整数。没想到要在rhino 的python里用才有箭头。

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service