Hello guys,
i was wondering if I can drive my density with an array, I have this expression up to this stage now:
string $vtxs = select -r pPlane1.vtx[0:224] ;
string $allVerts[] = ls -sl -fl;
string $item;
for ($item in $allVerts)
{
vector $p = pointPosition -w $item;
float $uv[2] = nearestPointOnMesh -ip ($p.x) ($p.y) ($p.z) -q -u -v "pPlane1";
float $c[3] = colorAtPoint -o RGB -u ($uv[0]) -v ($uv[1]) "checker1";
setFluidAttr -at “density” ($c[0]) fluidEmitter1;
};
But when i use the setFluidAttr the density does not change and maya comes up with an error.
can you think of any way around to fix this issue?
Thanks a lot!
GerryG