ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.

概要

extendFluid([endD=int], [endH=int], [endW=int], [startD=int], [startH=int], [startW=int])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

extendFluid は、取り消し可能、照会可能、および編集可能です。

ボクセルのサイズと既存の流体コンテンツの位置を変えずに流体グリッドを延長します。これを可能にするために、流体のトランスフォームも修正されるので、注意してください。

戻り値

なし

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

fluid

フラグ

endD, endH, endW, startD, startH, startW
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
endD(ed) int createqueryedit
この深度インデックスを持つセルのみに設定します。
endH(eh) int createqueryedit
この高さインデックスを持つセルのみに設定します。
endW(ew) int createqueryedit
この幅インデックスを持つセルのみに設定します。
startD(sd) int createqueryedit
この深度インデックスを持つセルのみに設定します。
startH(sh) int createqueryedit
この高さインデックスを持つセルのみに設定します。
startW(sw) int createqueryedit
この幅インデックスを持つセルのみに設定します。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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 )