移動先: 概要 戻り値 フラグ. MEL 例.

概要

exactWorldBoundingBox [-ignoreInvisible boolean] [dagObject...]

exactWorldBoundingBox は 「元に戻す」が可能、「照会」が不可能「編集」が不可能 です。

指定したオブジェクト(指定のない場合は選択したオブジェクト)に正確にフィットするバウンディング ボックスを計算します。このバウンディング ボックスの位置は常にワールド空間内となります。

戻り値

float[]xmin、ymin、zmin、xmax、ymax、zmax

フラグ

ignoreInvisible
ロング ネーム(ショート ネーム) 引数型 プロパティ
-ignoreInvisible(-ii) boolean create
バウンディング ボックスの計算に非表示オブジェクトを含めるかどうか

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

float $bbox[] = `exactWorldBoundingBox sphere1 cube1 cone2`;
print("Bounding box ranges from: " +
      $bbox[0] + "," + $bbox[1] + "," + $bbox[2] + ", to " +
      $bbox[3] + "," + $bbox[4] + "," + $bbox[5] + ".\n");