Go to: Synopsis. Return value. Keywords. Flags. Python examples.
saveFluid([currentTime=int], [endTime=int], [startTime=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
saveFluid is undoable, queryable, and editable.
A command to save the current state of the fluid to the initial state cache. The grids to be saved are determined by the cache attributes: cacheDensity, cacheVelocity, etc. These attributes are normally set from the options on Set Initial State. The cache must be set up before invoking this command.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
currentTime(ct)
|
int
|
|||
|
||||
endTime(et)
|
int
|
|||
|
||||
startTime(st)
|
int
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can have multiple arguments, passed either as a tuple or a list. |
import maya.cmds as cmds # save the current state to the initial conditions cache cmds.saveFluid()