pymel.core.effects.resampleFluid

resampleFluid(*args, **kwargs)

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. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
resampleDepth (rd) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Change depth resolution to this valueFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
resampleHeight (rh) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Change height resolution to this value
resampleWidth (rw) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Change width resolution to this value

Derived from mel command maya.cmds.resampleFluid

Example:

import pymel.core as pm

import maya.cmds as cmds

# set width resolution to 3
pm.resampleFluid( rw=3 )
# set height resolution to 12
pm.resampleFluid( rh=12 )
# set all  resolutions to 20
pm.resampleFluid( rw=20, rh=20, rd=20 )

Previous topic

pymel.core.effects.radial

Next topic

pymel.core.effects.rigidBody

Core

Core Modules

Other Modules

This Page