ジャンプ先: 概要. 戻り値. キーワード. フラグ. MEL 例.
geomToBBox [-bakeAnimation] [-combineMesh] [-endTime time] [-keepOriginal] [-name string] [-nameSuffix string] [-sampleBy time] [-shaderColor float float float] [-single] [-startTime time]
geomToBBox は、取り消し可能、照会不可能、および編集不可能です。
ジオメトリのポリゴン メッシュのバウンディング ボックスを作成します。階層ごとに 1 つのバウンディング ボックスを作成することもできます。なし
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-bakeAnimation(-ba)
|
|
![]() |
||
|
||||
-combineMesh(-cm)
|
|
![]() |
||
|
||||
-endTime(-et)
|
time
|
![]() |
||
|
||||
-name(-n)
|
string
|
![]() |
||
|
||||
-nameSuffix(-ns)
|
string
|
![]() |
||
|
||||
-keepOriginal(-ko)
|
|
![]() |
||
|
||||
-sampleBy(-sb)
|
time
|
![]() |
||
|
||||
-single(-s)
|
|
![]() |
||
|
||||
-shaderColor(-sc)
|
float float float
|
![]() |
||
|
||||
-startTime(-st)
|
time
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create two poly spheres and parent them together // polySphere; move -1 0 3; polySphere; move 3 0 -1; parent pSphere2 pSphere1; // Select the parent sphere // select -r pSphere1; // Create a bounding box per shape with the object hierarchy selected, // add a name and suffix for that bounding box and add a RGB color for the // shader color. geomToBBox -name "MyBBox" -nameSuffix "_perShape" -shaderColor 0 1 0.043; // Create two poly spheres and parent them together // polySphere; move -1 5 3; polySphere; move 3 5 -1; parent pSphere2 pSphere1; // Select the parent sphere // select -r pSphere1; // Create one bounding box for the entire hierarchy selected, // add a name and suffix for that bounding box and add a RGB color for the // shader color. // geomToBBox -single -name "MyBBox" -nameSuffix "_hierarchy" -shaderColor 0.928 0.460 1; // Create and simple animation and bake the animation on the bounding box for // a specific time frame and incremental evaluation time. polySphere -name "BouncingBall"; currentTime 1; setKeyframe; currentTime 5; move 0 10 0; setKeyframe; currentTime 9; move 0 0 0; setKeyframe; geomToBBox -keepOriginal -name "BakedAnimBBox" -bakeAnimation -startTime 3 -endTime 7 -sampleBy 0.5; currentTime 1;