Hello all,
I’ve been trying to piece together a MEL script for a while in Maya for particles to emit color and density onto textures. The concept is simple enough and I’ve essentially already got a scrip that can do this but it is limited. I’d like it to emit color, and for example, be able to use two emitters to emit two different colors onto one fluid texture and assign different materials to each of those colors.
I was hoping I could hire someone to not only complete this MEL script I am trying to create, but also hop on Skype with me for an hour or so to answer some general questions about the script and Maya itself because I’d like to have a full understanding of it and how it was created.
Here’s the thread of what I’ve been trying to do:
http://forums.cgsociety.org/showthread.php?f=7&t=1308933&page=1&pp=15
The current script I’m using:
//Creating alpha map
float $u = particleShape1.collisionU;
float $v = particleShape1.collisionV;
float $emitRate = 0.5;
if( $u != -1.0 && $v != -1.0 ){
float $rx = fluidTexture2DShape1.resolutionW;
float $ry = fluidTexture2DShape1.resolutionH;
int $xi = $u * ($rx-1);
int $yi = $v * ($ry-1);
setFluidAttr -at "density" -ad -fv $emitRate -xi $xi -yi $yi fluidTexture2DShape1;
}
In a nutshell I need to take this script a step farther so I can have it emit more then one type of color.
Shoot me a PM if you think you can help me!
Thanks.