Path Transform(パス変換)

パス全体に移動・スケール・回転を適用し、新しいパスを出力します。

中級
Since P00

入力ポート

Path(パス)

変換元のベジェパス

Path

出力ポート

Path(パス)

変換後のベジェパス

Path

パラメータ

名前デフォルト説明
Offset XX オフセットInt`0`水平方向の移動量
Offset YY オフセットInt`0`垂直方向の移動量
Scale XX スケールFloat`1.0`水平方向の拡大縮小率
Scale YY スケールFloat`1.0`垂直方向の拡大縮小率
Rotation回転Angle`0°`回転角度
PivotピボットEnum`Center`変換の基準点
Pivot Xピボット XFloat`0.0``pivot_mode=Custom` 時の X 座標
Pivot Yピボット YFloat`0.0``pivot_mode=Custom` 時の Y 座標

pivot の意味

説明
`Center`パス全体の境界中心を基準にする
`Origin`原点 `(0,0)` を基準にする
`CanvasCenter`パスが持つキャンバス中心を基準にする
`Custom``pivot_x` / `pivot_y` を使う

動作

  1. pivot を決定する
  2. 各制御点を pivot 基準で scale
  3. その結果を rotation
  4. 最後に offset を加算

使用例

  • Shape.path → Path Transform → Path Mask で図形ベースの cutout mask を作る
  • Shape(Rectangle).path → Path Transform(rotation:45°) で斜め帯 path を作る
Path Transform (パス変換) — PixPipeline ノード解説