Go to: Synopsis. Return value. Keywords. Flags. Python examples.
resampleFluid([resampleDepth=int], [resampleHeight=int], [resampleWidth=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
resampleFluid is undoable, queryable, and editable.
A command to extend the fluid grid, keeping the voxels the same size, and keeping the existing contents of the fluid in the same place. Note that the fluid transform is also modified to make this possible.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
resampleDepth(rd)
|
int
|
|||
|
||||
resampleHeight(rh)
|
int
|
|||
|
||||
resampleWidth(rw)
|
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 # set width resolution to 3 cmds.resampleFluid( rw=3 ) # set height resolution to 12 cmds.resampleFluid( rh=12 ) # set all resolutions to 20 cmds.resampleFluid( rw=20, rh=20, rd=20 )