Toon Flare is an After Effects script that generates randomized, stylized lens flares built from a single shape layer.
Toon Flare runs as a ScriptUI Panel with a button if you install it like this:
Quit After Effects if it is running. Move the file "Toon Flare.jsxbin" to your “ScriptUI Panels” folder, which is located here:
Windows: Program Files\Adobe\Adobe After Effects <version>\Support Files\Scripts\ScriptUI Panels
Mac OS: Applications/Adobe After Effects <version>/Scripts/ScriptUI Panels
Launch After Effects and click Window > Toon Flare.
Run the script and it will generate a new Toon Flare and null controller layer. Move the controller layer around to see how the flare looks in motion. Keep the controller layer selected, run the script again and instead of making a second flare, it will replace the existing one. Keep clicking, and you can cycle through several randomized flares until you get one you like.
The flare layer has an effect on it called Toon Flare, with the following controls:
You can select a layer in the dropdown to tell the flare to use a different layer as it's origin point. Don't select the flare layer itself in this dropdown.
Each flare layer contains several elements. The Scale control will scale every element up or down.
The Brightness settings are modifiers that affect the Opacity of each element as it moves towards or away from the center of the comp. Max Brightness is reached at the center of the comp, and Min Brightness is reached at 1.5x the distance from the centre of the comp to a corner. Brightness settings modify the underlying value of each element's Opacity. So with the default settings of Min 50% and Max 100%, an element with an Opacity of 60, will be 60 when at comp center, and 30 when outside the comp edges.
The number of sides that Iris elements have.
You can customize the elements within a flare by delving in to the shape layer contents. Each element is contained in a single Shape Group with a name like
Flat Iris 1. You can move them along the flare's axis with the
Offset > Amountinside each element group.
The Offset property inside each element shape group is actually a
Pucker & Bloatoperator, but it's visibility is turned off so that it has no effect on the shape. The
Amountis used as a dummy property to determine where the element lies along the flare axis. A value of 100 will place the element precisely over the origin - where the control layer is. A value of -100 will place the element precisely opposite that point, on the other side of the comp. There is no limit to the Offset value.
Since the Offset is a dummy property, if you turn on it's visibilty eyeball, it will Pucker or Bloat the element. So don't do that.
Each element group has an expression on it's
Transform > Scaleproperty so that it gets bigger or smaller with the main Scale control described above, but you can still alter the underlying value yourself. This is the best way to make elements bigger or smaller.
Most elements have their Opacity (Brightness) automatically modified by expressions on the
Gradient FillOpacity property. The underlying value can still be changed to make the element brighter or dimmer.
You can also change the
Gradient Fillcolors. Most colors are randomly assigned within a warm range of hues. If you want to shift all the colors in the flare together…
Try changing the blending mode of the flare layer. Add, Screen, Soft Light and Hard Light can all look good.
To change all the colors of a Toon Flare at once, try using an effect on the layer:
Hue/Saturation- Change the
Master Hueproperty to quickly shift the warm hue to a cooler one.
Curves- For full creative control over colors.
Colorama- Go crazy with extreme stylized colors. We suggest you twirl down the
Modifygroup and uncheck
Toon Flare works great with a lot of other native effects. Try using
Spherizefor a distorted, bulging look.
CC Radial Fast Bluror
Compound Blurcan work well to blur some elements more than others.
Minimaxcan get some unusual bloom / glowing results.
When you randomize a flare, it actually just makes a totally new layer and deletes the old one. Your settings for Control Layer, Scale, Brightness and Aperture Blades will be preserved, but any effects or other changes you've made to the flare layer will be lost.
If you hold the
Optionkey when clicking the panel button, or pass the argument
basicto K Bar the flare will be a consistent, basic flare with one of every possible element. You can use this as a base to consciously design your own flare by duplicating and modifying the elements in the shape layer.
In the real world, lens flare iris elements are reflections of the camera's own open aperture which closes with a number of blades and so has a shape like a polygon.
Updated compatibility with After Effects 2020+