移動先: 概要 戻り値 キーワード. フラグ. Python 例.

概要

loadFluid([currentTime=boolean], [frame=float], [initialConditions=boolean])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

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

グリッドにある個々のセル、またはすべてのセルに、密度(Density)、速度(Velocity)などのビルトインの流体アトリビュートを設定するコマンドです(単一の時間ステップに速度を設定する代わりに、フォース(Force)を設定することができます。フォースは時間ステップごとにロードや再適用されません)。 要確認: ワールド空間オプションも必要ですか?

戻り値

なし

戻り値の型は照会モードでは照会フラグが基になります。

キーワード

fluid

フラグ

currentTime, frame, initialConditions
ロング ネーム(ショート ネーム) 引数型 プロパティ
initialConditions(ic) boolean createqueryedit
初期状態のキャッシュをロードします。
currentTime(ct) boolean createqueryedit
再生キャッシュのカレント フレームをロードします。
frame(f) float createqueryedit
再生キャッシュの指定したフレームをロードします。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

import maya.cmds as cmds

# Load the initial conditions cache into the fluid
cmds.loadFluid( ic=True )
# Load the fluid from the current frame of the playback cache
# or the last frame if it is past the end
cmds.loadFluid( ct=True )
cmds.loadFluid( currentTime=True )
# Load the fluid from the specified frame of the playback cache
# or the last frame if it is past the end
cmds.loadFluid( f=28 )