I created a PP attribute called randYOrient. After updating the code, I dont get an error this time but also I dont see any change, the instance geo is still rotating.
Here is a link to my maya file if you have the time that might help.
https://www.dropbox.com/s/gco1o7vw8rzbhym/ParticleExplosion2.ma
creation Expression :
float $scaleNum = rand (.2,1); particleShape1.randYOrient = rand(360);
particleShape1.customOrient =<<rand(360),rand(360),rand(360)>>;
particleShape1.customSpeed = rand(30,-30);
particleShape1.CustomIndex = rand(0,5);
particleShape1.customScale = <<$scaleNum,$scaleNum,$scaleNum>>;
Runtime:
particleShape1.customOrient += particleShape1.customSpeed;
if (particleShape1.velocity <= .01)
particleShape1.customOrient = <<0,particleShape1.randYOrient,0>>;
