Creates a fluid object from the specified data and sets this function set to operate on the new fluid object.
Parameters: |
|
---|---|
Return type: | PyNode |
Derived from api method maya.OpenMayaFX.MFnFluid.create2D
Creates a fluid object from the specified data and sets this function set to operate on the new fluid object.
Parameters: |
|
---|---|
Return type: | PyNode |
Derived from api method maya.OpenMayaFX.MFnFluid.create3D
This method returns a pointer to the storage for the density data in the fluid. The size of this array can be obtained using the “gridSize” call.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.density
Use this method to add density, heat, fuel, and/or color to a particular voxel of a fluid.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.emitIntoArrays
Undo is not currently supported for this method
Tells the fluid shape to autoresize to include these two points This would normally be used in a fluid emitter node if the fluid had resizeToEmitter turned on. This may fail if the fluid is not autoRise and resizeToEmitter, or if the fluid has reached its maxResolution
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.expandToInclude
Undo is not currently supported for this method
This method returns a pointer to the storage for the falloff data in the fluid. The size of this array can be obtained using the “gridSize” call.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.falloff
This method returns a pointer to the storage for the fuel data in the fluid. The size of this array can be obtained using the “gridSize” call.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.fuel
Get the modes by which the color values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | FluidShape.ColorMethod |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getColorMode
This method returns pointers to the storage for the color data in the fluid. The size of these arrays can be obtained using the “gridSize” call.
Return type: | (float, float, float) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getColors
Get the modes by which the UVW coordinates values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | FluidShape.CoordinateMethod |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getCoordinateMode
This method returns pointers to the storage for the uvw coordinate data in the fluid. The size of these arrays can be obtained using the “gridSize” call. The uvw values supply the 3D texture mapping coordinates for each cell.
Return type: | (float, float, float) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getCoordinates
Get the modes by which the density values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | (FluidShape.FluidMethod, FluidShape.FluidGradient) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getDensityMode
Gets the dimensions of the fluid. The dimensions give the object space size of the fluid object in each direction.
Return type: | (float, float, float) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getDimensions
Get the modes by which the falloff values in the grid are determined. If the falloff grid is enabled, its values must be set by the user.
Return type: | FluidShape.FalloffMethod |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getFalloffMode
Compute the force of the fluid as a field on an array of points, given their position, velocity, and mass.
Parameters: |
|
---|---|
Return type: | Vector list |
Derived from api method maya.OpenMayaFX.MFnFluid.getForceAtPoint
Get the modes by which the fuel values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | (FluidShape.FluidMethod, FluidShape.FluidGradient) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getFuelMode
Gets the resolution of the fluid. The resolution gives the number of cells in the fluid grid in each direction.
Return type: | (int, int, int) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getResolution
Get the modes by which the temperature values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | (FluidShape.FluidMethod, FluidShape.FluidGradient) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getTemperatureMode
This method returns pointers to the storage for the velocity data in the fluid. The size of these arrays can be obtained using the “gridSize” call.
Return type: | (float, float, float) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getVelocity
Get the modes by which the velocity values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Return type: | (FluidShape.FluidMethod, FluidShape.FluidGradient) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.getVelocityMode
Returns the number of elements in the grid. This is equal to (x resolution * y resolution * z resolution). This routine is provided as a convenience to be used with the methods that give direct access to the fluid data. This gives the upper bound on the arrays. This size applies to all grids except for the 3 velocity grids.
Return type: | int |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.gridSize
Is this an autoresize fluid?
Return type: | bool |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.isAutoResize
If this is an autoresize fluid, should it also resize to the emitter
Return type: | bool |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.isResizeToEmitter
This method returns a pointer to the storage for the pressure data in the fluid. The size of this array can be obtained using the “gridSize” call. Note that the pressure data only exists if the velocity method is kStaticGrid or kDynamicGrid
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.pressure
Set the modes by which the color values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setColorMode
Set the modes by which the UVW coordinate values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setCoordinateMode
Set the modes by which the density values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setDensityMode
Set the modes by which the shader falloff values in the grid are determined. If the falloff grid is enabled, its values must be set by the user.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setFalloffMode
Set the modes by which the fuel values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation. The fuel value for a cell can be thought of as the amount of fuel contained in the cell that will be consumed during the simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setFuelMode
Sets the size and resolution of the grid. The resolution parameters control the number of cells in the fluid grid and the dimension parameters set the size of the fluid shape in object space.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setSize
Undo is not currently supported for this method
Set the modes by which the temperature values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setTemperatureMode
Set the modes by which the velocity values in the grid are determined. The values may be set by the user in various ways, or they may be computed as part of a simulation.
Parameters: |
|
---|
Derived from api method maya.OpenMayaFX.MFnFluid.setVelocityMode
This method returns a pointer to the storage for the temperature data in the fluid. The size of this array can be obtained using the “gridSize” call.
Return type: | float |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.temperature
For the given point in object space, get the grid indices of the voxel that it happens to lie in. If the point is outside the fluid, the method returns false, and the indices should not be used.
Parameters: |
|
---|---|
Return type: | (bool, (int, int, int)) |
Derived from api method maya.OpenMayaFX.MFnFluid.toGridIndex
Tells the fluid shape that the contents of the fluid grid has changed. It is necessary to call this routine after modifying internal fluid data via a pointer recieved from any of the access routines in this function set. Failure to call this will result in the fluid not drawing with your changes. Derived from api method maya.OpenMayaFX.MFnFluid.updateGrid
Undo is not currently supported for this method
Returns the number of elements in the velocity grids. X velocity size = (x resolution+1 * y resolution * z resolution). Y velocity size = (x resolution * y resolution+1 * z resolution). Z velocity size = (x resolution * y resolution * z resolution+1).
Return type: | (int, int, int) |
---|
Derived from api method maya.OpenMayaFX.MFnFluid.velocityGridSizes
For the given voxel, get the location of the center in object space. If the voxel indices are not valid, the point may not be set to a valid point
Parameters: |
|
---|---|
Return type: | Point |
Derived from api method maya.OpenMayaFX.MFnFluid.voxelCenterPosition