Hello, Thanks for reading my post. I dont really have any MEL knowledge, I just wrote this script reading other posts and copying the code that interested me .
So far the scripts works fine, except it isnt "killing" all the particles in the ID list. Do you knpw why this can be ? (already deleted nparticle cache several times)
So this is my script :
if (nParticleShape2.particleId == 187 || nParticleShape2.particleId == 547 || nParticleShape2.particleId == 1031 || nParticleShape2.particleId == 1259 || nParticleShape2.particleId == 1260 || nParticleShape2.particleId == 1407 || nParticleShape2.particleId == 2236 || nParticleShape2.particleId == 2296 || nParticleShape2.particleId == 2629 || nParticleShape2.particleId == 2823 || nParticleShape2.particleId == 3845 || nParticleShape2.particleId == 4569 || nParticleShape2.particleId == 4579 )
{nParticleShape2.lifespanPP = 0 ;}
else if (nParticleShape2.lifespanPP = 20) ;
In this example the script isnt killing particles 1031 and 1259.
Thanks for helping me out