October 1, 2007

rvb Scripting














On the right is a script I wrote to scale down a curve to fit in certain area. The original is CurveToFitLength in Rhino scripting tutorial.

Knowing both INPUTs
Rhino.CurveLength (strObject)
Rhino.CurveArea (strObject)

were available in Scripting Method, I thought it would be easy to write the same script but Area-based scaling instead of Length-based scaling. But I just realized Scripting Method also requires me to refer OUTPUTs. Unfortunately, CurveLength has dbl OUTPUT while CurveArea has arr OUTPUT. Checkout the difference in above jpg.

Scripting、学校では教えてくれないですが使えると仕事に有利かと思い独学中。Sky が手伝ってくれて本当に助かります。私みたいな初心者が何人寄っても何も出てこないのは明白だし、クラスがあったとしても自分のペースでできない上に無駄に課題が多いと厄介です。自分で書いてみて行き詰まったら彼に聞いています。

No comments: