pymel.core.effects.saveFluid

saveFluid(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
currentTime / ct int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  cache state of fluid at current time
endTime / et int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  end Time for cacheing
startTime / st int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  start Time for cacheing Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.saveFluid

Example:

import pymel.core as pm

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