移動先: 概要 戻り値 キーワード. フラグ. Python 例.
loadFluid([currentTime=boolean], [frame=float], [initialConditions=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
loadFluid は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
グリッドにある個々のセル、またはすべてのセルに、密度(Density)、速度(Velocity)などのビルトインの流体アトリビュートを設定するコマンドです(単一の時間ステップに速度を設定する代わりに、フォース(Force)を設定することができます。フォースは時間ステップごとにロードや再適用されません)。 要確認: ワールド空間オプションも必要ですか?なし
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
initialConditions(ic)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
currentTime(ct)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
frame(f)
|
float
|
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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 )