APPLYING THE EFFECT
Now we can apply these keyframes to a white solid and use that to create the lightsaber core and glow to be added onto our footage.
Close the footage window and create a new Composition (Composition > New Composition...) set to the same pixel size, time length and pixel aspect ratio as your first composition.
Add a new solid to the new composition by going Layer > New > Solid...
In the Solid Settings click the "Make Comp Size" button to ensure that the sollid will fill the canvas space.
Click the color swatch, set the color to pure black and click "OK".
In the Solid Settings click "OK". After Effects now inserts the solid into your new composition.
Add a another solid to the new composition by once again going Layer > New > Solid...
Click the color swatch, set the color to pure white this time and click "OK".
In the Solid Settings click "OK".
If necessary, in the switches panel, set the display quality of the solids to best.
In the timeline, click the Comp 1 tab to display it's content.
Click the name "Mask Shape" under your footage's Mask 1. This should highlight all the Mask Shape keyframes for Mask 1.
Copy the mask keyframe data by going Edit > Copy
In the timeline, click the Comp 2 tab to display it's content.
If it is not, position the time marker on the very first frame of the composition. (By default it should be there already, but in case it isn't this is very important)
Click the name of Solid 1 (Your white solid)
Paste the mask keyframe data into Solid 1 by going Edit > Paste
Apply a blur effect to the saber core layer (Solid 1 layer) by going Effect > Blur & Sharpen > Fast Blur or Effect > Blur & Sharpen > Gaussian Blur.
In the Effect Controls window, give the layer a blur of 1 or 2 or maybe even 3 depending on how close or far the lightsaber is from the camera and then close the Effect Controls window. Remember, this is how blurry the core of your lightsaber will appear, so don't over or under-do it.
Click the triangle next to Solid 1's name in the timeline window, and then click the triangles next to Effects and then Fast Blur or Gaussian Blur.
Duplicate the lightsaber layer by going Edit > Duplicate
Click the name of the #2 Solid 1 layer you just made and then set it's blurriness to 10.
Note: In the end we will have 3 lightsaber aura layers with varying blur values in a 1:2:4 blur ratio, as I call it. For the example of this tutorial I am using 10, 20, 40. This set of blur values will not look ideal at all times. You will have to playa round with these numbers to find what glow works for your shot. For closer shots you might use 20, 40, 80 or 30, 60, 120 and for far away shots you might use 5, 10, 20. The point is as long as the blurs are in proportion to each other, you have to tweak them to make sure they look as good as they can for your shot.
Duplicate the layer again by going Edit > Duplicate
Click the name of the #3 Solid 1 layer you just made and then set it's blurriness to 20.
Duplicate the layer once again by going Edit > Duplicate
Click the name of the #4 Solid 1 layer you just made and then set it's blurriness to 40.
In the timeline, click the Comp 1 tab to display it's content.
Click anywhere in the timeline to deselect anything currently slected, click the name of your footage's Mask 1, and delete the mask by hitting the delete key.
Position the time marker on the very first frame of the composition.
"Nest" your lightsaber composition (Comp 2) into Comp 1 by clicking the Comp 2 name in the Project window and dragging it to the center of the Composition window. (The composition should snap to the center of the composition window, ensuring that it is lined up with your footage)
If necessary, in the switches panel, set the display quality of the nested Comp 2 to best.
Set the transfer mode of the lightsaber layer (the nested Comp 2) to screen mode by going Layer > Transfer Mode > Screen
Tip: If you want to add a nice roundness to your lightsaber corners/tips, now is the time to apply a median filter. Make sure your nested lightsaber composition (comp 2) is still selected and go Effect > Image Control > Median and apply a median radius of 1 or 2 or maybe 3 depending how large your lightsaber is in frame.
Go Effect > Adjust > Color Balance
In the Effect Controls window, first click the Preserve Luminosity checkbox and then give the lightsaber color by punching up the Midtone and Highlight Balance for the color you want.
Note: Colors other than red green and blue can be created by punching up the midtones and highlights of more than one color. Purple = Red + Blue, Yellow = Green + Red and Cyan = Green + Blue.
Tip: The color red almost always looks best with the midtones and highlights up at 100, but other colors like green and blue usually look better when they contain a little bit of each other in the midtones. Play around mixing colors to get just the range you want.