After Effects Lens Flare with Transparent Background
Question from a student I had in my After Effects training class in Hartford, Connecticut:
"Hey Damon,
You showed me how to get a lens flare with nothing else (no backgrounds/alpha keyed) on the screen using a luma matte...I think! Do you remember the actions necessary to produce such an effect? I keep ending up with a black lens flare! Help!
Thanks again,
Bryan"
Duplicating the solid with the lens flare and using the top one as a track matte can accomplish this. Here are the steps; you can download an example of this as well.
Step one: Create a solid and add the lens Flare filter to it, get the lens flare just how you would like it and duplicate the solid.
Step two: on the top solid added the Hue/Saturation filter and take the master saturation down to -100, Also add the Levels filter and slide the white point slider till it just touches the beginning of the levels histogram.
Step three: Set the bottom solid to use the top solid as a track matte (Luma Matte)
That's it transparent lens flare.






To use the Set Matte effect you need to first pre-compose your lens flare on the black solid layer and move all attributes to the new pre-comp.
Then apply the Set Matte effect to the pre-comp in your main comp and change the "Use For Matte" property to luminance or lightness.
Then change the pre-comp's blend mode to "Luminescent Premul." This should give you a lens flare that is identical to the original flare, only with alpha.