I'm animating a spot welder which throws off some sparks (with help from Andrew Price's spark tutorial) and I can't actually get them to change color in relation to their age. Here's my node setup:
The color nodes on the top are all you need to pay attention to. If you look, I've got a color ramp that I tried to use to get the sparks to shift color as they get older, but for some reason it isn't working correctly. The divide node seems to always be giving an output of 1, no matter what the age of the particle is. This means that the sparks only ever have the color of the very end of the color ramp. I've tried moving the left color picker over, even to within about 1 pixel of the right one. It has no effect and the sparks keep the color of the right color picker throughout their entire particle lifetimes. I did also make sure to actually give the particles a lifespan. Does anyone know why the divide node might be giving an output of 1? The age to lifetime ratio should start at 0 and progress to 1.