How to properly instance from disappearing particles

Hi,

I am trying to use Sopto CHOP to instance from particle points. When the particle points drop down from non-zero to zero, the numSamples of the sopto CHOP remains to be the last non-zero value, leading to incorrect instancing. Could this be a bug? Or is there something wrong with my setup?
Here’s an example:


The number of points has dropped down to zero, but the numSamples of sopto is still 4, without a visible value. Are they NAN? Can I check on them?

Thank you very much!

Cheers,
Yong

The fact that numSamples still shows 4 could be a bug. If you middle click the sopto2 node, what does it show as it’s length?

Here’s the info:
image
And here’s the test file:
debug_zero_particles_instancing.toe (5.6 KB)

Just realized I can check the number of channels(numChans) for this special case.

Thanks for your suggestion!

Cheers,

Yong