grasshopper的插件FireFly 萤火虫 不知道有人发过没有,如果有 版主删了吧。。。。
来自于http://www.liftarchitects.com/journal/2010/3/11/firefly-beta-release.html#comments
安装到x:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\Components里面
对计算机语言无感 貌似是连接Arduino与grasshopper的 具体翻译如下How to use the Serial Read component:
The Serial Read component allows you to retrieve a value coming over the Serial Port. There are three input nodes for this component.
The P-input (Port Number) has to be the same Serial Port assigned in the Arduino IDE. The default port is set to 3 (ie. COM 3) although
this port value may vary depending on computer configurations. The B-input (Baud Rate) value should match the speed set in the Arduino
sketch. Standard values include: 4800, 9600, 14400, 19200, 28800, 38400, 57600. The N-input requires an integer in order to (0) Open Port,
(1) Get Value, or (2) Close Port. You can connect a Timer component to the Serial Read component to retreive values at a given interval.
Note: you should only turn the Timer component "On" after you have opened the port(0) and then retrieved the first value (1). The output
for this component will return a string. If you have sent a numeric value to the Serial Port, you will need to cast the string output of
the Serial Read component into a numeric value. To do this, simply feed the output of the Serial Read component into a Number or Integer
parameter (Params/Primitive).
How to use the Serial Write component:
The Serial Write component allows you to write a string value to the Serial Port. There are four input nodes for this component. The
N,P, and B inputs are the same as the Serial Read (see above for more information). The D-input is the data you wish to write to the
Serial Port. Note: This component does not need to use a Timer component to update at a given interval if you are sending slider information
to the Serial Port.