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. 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 | ||
|
Derived from mel command maya.cmds.saveFluid
Example:
import pymel.core as pm
# save the current state to the initial conditions cache
pm.saveFluid()