pymel.core.effects.saveFluid

static effects.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 Flag can have multiple arguments, passed either as a tuple or a list.
startTime (st) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
start Time for cacheing

Derived from mel command maya.cmds.saveFluid

Example:

import pymel.core as pm

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

Previous topic

pymel.core.effects.runup

Next topic

pymel.core.effects.saveInitialState

Core

Core Modules

Other Modules

This Page