emission gradient by age

im a new krakatoa user,i dont know how the kcm work clearly
i want to create a particle system travel like a snake and the particles emission gradient from the particles born to die .
is very simple ,but i dont know how it works
anybody help me …thx very much…

     ps---my English is not very good,i`m sorry

Hi!

Are you creating the particles in PFlow?

If you are, all you need to do is save your PFlow particles to a PRT file sequence that contains the Age and LifeSpan channels.
Then, in the KCM, load the two channels, convert them to Floats, divide the Age by the LifeSpan and you will have a value changing from 0 for birth to 1.0 for death.
Now you could do several things with this value, the simplest one would be to create a Blend operator, connect the value from the previous calculation to the 3rd input socket of the Blend, and two Vector Inputs with two different colors into the first and second sockets. Connect that to the Output node and switch it to Emission. Now you will have a gradient from the first color to the second color over time.

Some other approaches are explained here:
thinkboxsoftware.com/krak-ma … ng-by-age/

thanks bobo…:slight_smile:
i get it…