Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Keywords

fluid

Flags

currentTime, endTime, startTime
Long name (short name) Argument types Properties
currentTime(ct) int createqueryedit
cache state of fluid at current time
endTime(et) int createqueryedit
end Time for cacheing
startTime(st) int createqueryedit
start Time for cacheing

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.

Python examples

import maya.cmds as cmds

# save the current state to the initial conditions cache
cmds.saveFluid()