Particle object ID

I’m working on a project like Andrew Price Shattered Glass tutorial https://www.youtube.com/watch?v=9BLqjooSeCc&t=1531s

I have a plane has particle system and explode modifier for big chunks. also there is a second particle system for distribute small tiny object group.

Here is a question. I need to all particle system has object ID. Second(small one) particle system doesn’t seems in the Object ID

Like this but it is not a real project. It ıs a test scene.




I hope I can tell what I mean. Thanks in advice for all helps :wink:

I solved this. I forgot to change the tiny objects ID

Object ID pass is relative to objects not particles.
So, if you explode an objects through particle modifier, it is same object into fragments but it is same object.
So, its pass index will be used for all fragments.

If you use a specific mesh as object visualisation of particles, its pass index will be use for all duplis made by particle system.

If you want to have a particle index per particle, you have to create another renderlayer specific to particles and render particles with a material using particle index socket of Particle Info node.
It is an obligation because there is no particle index pass or way to create one, yet.