Path Sample
Path generation/manipulation node. Path Sample creates or processes vector path data.
intermediate
Since P00
Input Ports
Path
サンプリングするBezier path
Output Ports
Position
t 位置のPath上の座標 [x, y]
X
X 座標
Y
Y 座標
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| Position | Float | 0.0 | Path上の位置(0=始点、1=終点) |
動作
正規化 t によるサンプリング
t は Path全体を通した正規化パラメータ です:
t = 0.0→ Pathの始点(最初のセグメントの p0)t = 1.0→ Pathの終点(最後のセグメントの p3)- 複数セグメントがある場合、
tは均等に各セグメントに分配
例: 3セグメントのPathで t = 0.5 の場合:
0.5 × 3 = 1.5→ 2番目のセグメント (index 1) のlocal_t = 0.5
パス未接続時
座標はすべて (0.0, 0.0) を返します。
Usage Examples
パスアニメーション(ジャンプ軌道)
[BezierPath] → path → [PathSample] → x, y → [Transform] → [Preview]
↑ t
[TimeSource] → [EaseInOut] → tt パラメータを📌入力ピン化して EaseInOut の出力を接続することで、イージング付きのPathアニメーションが実現できます。
パスに沿った軌跡描画
[BezierPath] → path → [PathSample] → x, y → [Transform(対象画像を移動)]
↑ t ↓
[Remap(0〜1)] [Blend] → [Preview]静的な位置参照
t を手動で設定して、Path上の特定の位置の座標を取得。
キャラクターのPlacement positionやエフェクトの発生点として使用。
Notes
tはPath全体の正規化値です。セグメント単体の t ではありませんtのpromotable: trueにより、入力ピン化してアニメーション制御が可能です- 出力の
position(Vec2) とx,y(Float) は同一の座標を異なる型で提供します
💡 Tips
- •`t` はPath全体の正規化値です。セグメント単体の t ではありません
- •`t` の `promotable: true` により、入力ピン化してアニメーション制御が可能です
- •出力の `position` (Vec2) と `x`, `y` (Float) は同一の座標を異なる型で提供します
Related Nodes
bezierpath
pathsample
transform
preview
timesource
easeinout
blend