I've been trying to attach particle emitters to vertices in the cloth for a while now, with no luck. I've put in a basic "cheat" at the moment of a square particle emitter underneath the skirt, but this is just to get the idea of how it will look before implementing the proper mechanics. I've been looking at forums online and found help with someone who had a similar problem, but was moving a fire emitter up with a cloth hot air balloon. The soloution given was this code$pos1 = `xform -worldSpace -query -translation pCone1.vtx[199]`;
$pos2 = `xform -worldSpace -query -translation pCone1.vtx[0]`;
$pos3 = `xform -worldSpace -query -translation pCone1.vtx[1]`;
$pos4 = `xform -worldSpace -query -translation pCone1.vtx[2]`;
pCube1.translateX = (($pos1[0] + $pos2[0] + $pos3[0] + $pos4[0]) / 4) - 0;
pCube1.translateY = (($pos1[1] + $pos2[1] + $pos3[1] + $pos4[1]) / 4) - 10.917;
pCube1.translateZ = (($pos1[2] + $pos2[2] + $pos3[2] + $pos4[2]) / 4) - 0;
Which unfortunately was not successful when changed to work with my project. I'm getting errors such as
// Error: water_emitter.translateY = (($pos1[1] + $pos2[1] + $pos3[1] + $pos4[1]) / 4) - 10.917;
//
// Error: Invalid use of Maya object "water_emitter.translateY". //
which leads me to believe that there's a problem with the emmiter I'm using, or I'm not quite understanding what I'm meant to be translating with the vertices on the skirt. I'll do more research into this and see what soloutions I can find.


