0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Houdini】Orientation Along Curve SOP を使ったCurveのTransform Matrixの作成

0
Last updated at Posted at 2026-04-25

Orientation Along Curve SOPで見る Y Axisの向き

Orientation Along Curve SOPを使うと
簡単に3x3 transformアトリビュートの作成や指定した軸を中心に回転を行うことができます。

タイトルなし-2026-03-16 03 23 32(copy)-2026-03-29 19 30 32(copy)-2026-04-02 08 46 21(copy)-2026-04-08 07 14 39(copy)-2026-04-12 13 32 37(copy)-2026-04-21 03 35 01(copy)-1.gif

注意点

tangentの平均によってY Axisの向きが変化します
右回りか左回りかのCurveかによってY Axis向きの上下が変化したり、
ポイントの移動によってもY Axis向きの上下が変化します。
マイビデオ.gif

Curveを他のジオメトリーの表面上に配置したいときに、
tangentの向きを気にしながら作業するのは、現実的ではないため
Curveが吸着した先の法線を使い、常にY Axisの向きにします。

Y Axisを他のアトリビュートから参照する

適当なTube SOPが持つNをRay SOPでCurveに伝播させます

image.png


image.png

ここでも注意があり、Start Up AttributeにNを入れれば良いわけですが、
Primitive/Detailアトリビュートの名前とあるので
Convert Line SOP -> Attribute Promote SOP を通して Primitive毎のNを書き出しています。

image.png


これでどの状態の対象でも安定したCurveのtransformを得ることができるようになりました。
image.png

結果として

正しいTransformを得ることで
NormalやTranformに基づいて動作をするSweep SOPなど Copy to Points SOPなどで望んだ結果を得やすくなります。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?