ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
extendFluid([endD=int], [endH=int], [endW=int], [startD=int], [startH=int], [startW=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
extendFluid は、取り消し可能、照会可能、および編集可能です。
ボクセルのサイズと既存の流体コンテンツの位置を変えずに流体グリッドを延長します。これを可能にするために、流体のトランスフォームも修正されるので、注意してください。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
fluid
endD, endH, endW, startD, startH, startW
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# extend fluid by 3 units in width to the left - i.e. at the "start"
cmds.extendFluid( sw=3 )
# shrink fluid by 3 units in width to the left - i.e. at the "start"
cmds.extendFluid( sw=-3 )
# extend fluid by 2 units in width to the right - i.e. at the "end"
cmds.extendFluid( ew=2 )
# shrink fluid by 2 units in width to the right - i.e. at the "end"
cmds.extendFluid( ew=-2 )
# extend fluid in all directions by 10
cmds.extendFluid( sw=10, ew=10, sh=10, eh=10, sd=10, ed=10 )
# shrink fluid in all directions by 10
cmds.extendFluid( sw=-10, ew=-10, sh=-10, eh=-10, sd=-10, ed=-10 )