ghpythonlib.components.Voronoi

When you call ghpythonlib.components.Voronoi fumction, and try to give “boundary” input something like you always have to specify clearly the input type hint as follows vd_test.zip However, this works only with rectangle curve, so that more adaptive solution could be using rhinoscriptsyntax.CurveBooleanIntersection with calling ghpythonlib.components.Voronoi fumction with just 1 input(points). vd_test_trim.zip    

  • Comments Off on ghpythonlib.components.Voronoi

baking component (from script) / pythonスクリプトから自動的にベイクさせるコンポーネント

baking.gh This will fit for some projects (parameter finding, when you get “good ” paramete combination, then you can bake it automatically) 2 input port layer_name: baked object will be on that layer name, if the layer doesn’t exist, it will be created. bake_obj_list: object list, same like we directed rhino preview object to “a” port. いくつかのプロジェクトに使えると思います。パラメータの組を探して、ある評価にマッチしたときに、パラメータの記録とベイクを同時に自動に行うのに使えそうです) 2つの入力 layer_name: レイヤの名前を指定します。指定したレイヤにベイクオブジェクトが焼かれます。おそらくこれはダイナミックに、パラメータの組を基にしたレイヤ名などにするとスマートでしょう。レイヤが存在しない場合は新たに作成します。 bake_obj_list: ライノプレビューオブジェクトを入力します。これまでプレビューモデルを “a” ポートに向けていたのと同じです。全てをこれに向けるとどんどんオブジェクトが量産されて行くので注意。上で書いたように、ある条件にあったときだけ、焼く、という風に使ってください。      

  • Comments Off on baking component (from script) / pythonスクリプトから自動的にベイクさせるコンポーネント

python module for MAS studio, スタジオ用のpythoモジュールです

mas.zip what: スタジオで扱うモデルのために作ったモジュールです。今後機能拡張、して行きます。詳しい使用方法はエスキース時に説明します(後にポストします)。グラフ理論における最短ルート検索などの関数を含みます These are python modules made for this MAS studio. Still in progress. I will lecture you how to use in escuisse time. It includes functions to find the shortest path in network, the algorithms are based on graph theory. how to set up: MASunitというフォルダを c:\ 直下 に作成( c:\MASunit  )して下さい。その中にzipファイルの中身 CA_neighbour.py graph_util.py Utility.py の3つのファイルを入れてください。 create a folder “MASunit” directly under c:\ ( c:\MASunit) . unzip downloaded mas.zip you will have 3 files: CA_neighbour.py graph_util.py Utility.py put these files in that “MASunit” folder. パスを通します rhinoceros で EditPythonScript とコマンドを打ってpython editorを出してください。 Tools -> options… とたどって Files タブ Module Search Paths のところで + ボタンを押して、上で作ったフォルダのパス c:\MASunit を指定してください。その後Rhinocerosを終了し、再起動してから使用可能になります。 set the path to modules on Rhinoceros command “EditPythonScript”Read More »

  • Comments Off on python module for MAS studio, スタジオ用のpythoモジュールです

agents from textdots and surface、文字情報、位置情報、平面形をマッチさせてagentのインスタンスを作る

agents_from_textdots_and_surface.zip This would probably fit to Justin’s CA model, but still would be useful for all of you. Also this components combination and class definitions could work for all of your models. この入力方法はJustinさんのモデルに使えると思いますが、2つのコンポーネントのつなぎかた、インスタンスの送り方、クラスの定義などは皆さんのモデルにほぼ共通して使えるスタイルです。

  • Comments Off on agents from textdots and surface、文字情報、位置情報、平面形をマッチさせてagentのインスタンスを作る

TODO1

これをGhPythonコンポーネントで作ってみてください。p2の動かし方はなんらか連続性のある変化(サインカーブなど)を考えてください。ルーバーの列毎に開口の大きさが違っているのも面白いかと思います。質問はコメント欄に。 Try to build this function with your scripting. The changes of p2(s) would be nice to have continuity like sine curves. It’s is interesting  when each unit has different size of gap.  Feel free to put your question as comment.