http://area.autodesk.com/blogs/duncan/waterfall_using_fluids_and_nparticles
It is also complimented with this tutorial.
http://www.autodesk.com/us/maya/2011help/index.html?url=./files/WS1a9193826455f5ff-75c1f7c3124f51ccbd1-3c8b.htm,topicNumber=d0e450399
Monday, January 2, 2012
A great script at fluid emmissions with particles.
Can't believe it's been just over a year since my last post here. Figured I'd make use of this blog by linking important findings in the Maya world here.
Today I found a script online that lets particles emit fluids on Maya.
I found the script at this address on the Area:
http://area.autodesk.com/forum/autodesk-maya/dynamics/emit-fluids-from-particles/
---------------The Script-----------------------------
// get particle position
float $pos[] = particleShape1.worldPosition;
//find out which fluid voxel is at that position.
vector $voxel = `fluidVoxelInfo -voxel $pos[0] $pos[1] $pos[2] fluid1`;
$vX = $voxel.x;
$vY = $voxel.y;
$vZ = $voxel.z;
//get particle velocity
float $vel[] = particleShape1.worldVelocity;
//emit density and velocity in specified voxel.
setFluidAttr -at “density” -ad -fv 5 -xi $vX -yi $vY -zi $vZ “fluid1”;
setFluidAttr -at “velocity” -ad -vv $vel[0] $vel[1] $vel[2] -xi $vX -yi $vY -zi $vZ “fluid1”;
---------------Result-------------------------
Today I found a script online that lets particles emit fluids on Maya.
I found the script at this address on the Area:
http://area.autodesk.com/forum/autodesk-maya/dynamics/emit-fluids-from-particles/
---------------The Script-----------------------------
// get particle position
float $pos[] = particleShape1.worldPosition;
//find out which fluid voxel is at that position.
vector $voxel = `fluidVoxelInfo -voxel $pos[0] $pos[1] $pos[2] fluid1`;
$vX = $voxel.x;
$vY = $voxel.y;
$vZ = $voxel.z;
//get particle velocity
float $vel[] = particleShape1.worldVelocity;
//emit density and velocity in specified voxel.
setFluidAttr -at “density” -ad -fv 5 -xi $vX -yi $vY -zi $vZ “fluid1”;
setFluidAttr -at “velocity” -ad -vv $vel[0] $vel[1] $vel[2] -xi $vX -yi $vY -zi $vZ “fluid1”;
---------------Result-------------------------
Thursday, December 16, 2010
Wednesday, December 15, 2010
Wednesday, December 1, 2010
Happy Penguin
Thursday, November 11, 2010
Tuesday, October 26, 2010
Subscribe to:
Posts (Atom)




