Okay, I know very little about scripting (actually nothing at all)
but when I add those two lines in front of the script I already have there it returns with
// Error: Attribute not found or variable missing '$': particleShape1.collisionGeometryIndex //
// Error: } //
// Error: Line 12.1: Syntax error //
in the Maya command history bar.
Here’s the full script now:
if (particleShape1.collisionGeometryIndex != -1){
lifespanPP = -1;
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;
}
How am I goofing this one up? The script work until I add those two lines.
Thanks!

