Back to Node List

Path Bounds

path_bounds

Output bounding information for a bezier path

Draft
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
パス
path
Path
Required
境界を調べるベジェパス

Output Ports

NameTypeDescription
最小
min
Vec2
境界の最小座標 [min_x, min_y]
最大
max
Vec2
境界の最大座標 [max_x, max_y]
サイズ
size
Vec2
境界サイズ [width, height]
中心
center
Vec2
境界の中心座標 [center_x, center_y]
最小 X
min_x
Float
最小 X 座標
最小 Y
min_y
Float
最小 Y 座標
最大 X
max_x
Float
最大 X 座標
最大 Y
max_y
Float
最大 Y 座標
width
Float
境界の幅
高さ
height
Float
境界の高さ
中心 X
center_x
Float
中心 X 座標
中心 Y
center_y
Float
中心 Y 座標

Parameters

NameTypeDefaultRangeDescription / Options
対象
scope
Enum
All

パス全体を測るか、1 本のサブパスだけを測るかを選びます

  • 全サブパスAll
    すべてのサブパスをまとめて測ります
  • 指定サブパスSubPath
    選んだ 1 本のサブパスだけを測ります
サブパス
sub_path_index
Int
00–255

測定するサブパス番号(0 = 最初)

概要

  • バージョン: 1

動作

  • scope = All
    • すべてのサブパスをまとめた境界を返します
  • scope = SubPath
    • 指定した 1 本のサブパスだけの境界を返します
  • 境界はコントロールハンドルの位置ではなく、実際の曲線形状から計算します
  • 空パス、または存在しないサブパス番号を指定した場合は、すべて 0 を返します

使用例

パスの幅と高さを取得する

[BezierPath] → [PathBounds] → width, height

指定サブパスだけを測る

[MultiPathEditor] → [PathBounds(scope: SubPath, sub_path_index: 1)]

境界の中心を別ノードに渡す

[BezierPath] → [PathBounds] → center_x, center_y → [Transform]

注意事項

  • min / max / size / center は Vec2 出力です
  • 同じ値を min_x などの Float 出力でも出しているので、数値ノードへ直接つなげます
  • sub_path_index のスライダー上限は、入力されたパスのサブパス数に応じて自動更新されます
Back to Node List
Path Bounds — PixPipeline Node Reference