Shape Sweep(シェイプ走査)

単純 shape をパスに沿って走らせ、白+アルファのマスク画像を作ります。

中級
Since P00

入力ポート

Path(パス)

走査ガイドとして使うパス

Path

出力ポート

Image(画像)

パスに沿って生成された白+アルファマスク

Image

パラメータ

名前デフォルト説明
WidthInt`64`出力キャンバス幅
Height高さInt`64`出力キャンバス高さ
Sub-pathサブパスInt`0`使用するサブパス番号
Shape図形Enum`Circle`stamp する shape
Shape Width図形幅Int`8`shape の幅
Shape Height図形高さInt`8`shape の高さ
Samplesサンプル数Int`16`パス上に配置する stamp 数
Start開始Float`0.0`正規化開始位置
End終了Float`1.0`正規化終了位置
Align To Pathパスに沿って回転Bool`false`接線方向に合わせて回転するか
Rotation回転Angle`0°`追加回転角度

技術詳細

  • sub_path_indexParamHint で入力 path のサブパス数に追従します。
  • align_to_path をオンにすると、各 stamp が接線角に合わせて回転します。
  • Circle / Ellipse / Rectangle / Diamond に対応します。

使用例

  • 円を path に沿って走らせてマント cutout 用 mask を作る
  • 矩形を align_to_path=true で走らせて帯状 mask を作る

💡 ヒント

  • `sub_path_index` は `ParamHint` で入力 path のサブパス数に追従します。
  • `align_to_path` をオンにすると、各 stamp が接線角に合わせて回転します。
  • `Circle` / `Ellipse` / `Rectangle` / `Diamond` に対応します。
Shape Sweep (シェイプ走査) — PixPipeline ノード解説