plz joojaa ...help with this!!!
when we instance a obj to the nparticles then all r in one direction is there a way to alter their direction so that they r all aligned or aimed along the curve....
like in 
i have tried using rotationpp for per particle with mel script in it but still not working .
i m uploading the file maya file to give a clear view .
http://www.4shared.com/file/DkzEr64E/instrot.html
i put this code into the creation of rotationpp
int $particleCount = particle -q -count nParticleShape1; int $z=0;
for ($n=0; $n<$particleCount; $n++)
{
if ($n<$particleCount/2)
{
$z=($z-10);
}
else {
$z=($z+10);
}
rotate -r -ws 0 0 $z nParticleShape1.pt[$n];
print $z;
}
in the instancer i chose rotation type as rotationpp and rotation as rotationpp
but still the particles are all in same direction of geometry...is something wrong with mel code...i checked the value of $ z and in script editor and it prints it correctly but the particles dont seem to rotate and align themselve along the curvebased on $z.
someone plz guide or better still correct it and then guide so i get fully clear on it.
thnx in advance