First, that effect was created using Plexus, so using the beams effect is just a work around. If you have a lot of titles graphics and lines you want to animate, using Beams is going to take a real long time. What this expression does, is convert 3D space to 2D space, basically faking the position for AE(it’s all fake anyway as it’s a 2D monitor and 3D space is just forced perspecive…)
Here is how you would do this for 1 LINE with 3 points. First you need to create 3 points in space(in my example I use text, you could use nulls, solids, whatever). I would animate them first.
Next you would create a solid, name it beam 1. This will connect point 1 to point 2. Add the beam effect to the layer. “Alt+click” the “Starting point” to start the expression and type StartPointLayer= and using the pickwhip(looks like a little spiral) connect it to your first layer(just connect to the layer name), then type a “;”(semi-colon). Press Enter to start a new line and type “StartPointLayer.toComp([0,0,0])”.
In my example my layer name is “position 1” so my expression is simply: StartPointLayer=thisComp.layer("Position 1");
StartPointLayer.toComp([0,0,0])
Now we need to do an ending point which will be the same but with a different variable. Alt click the “Ending Point” type “EndPointLayer=” and pickwhip to your 2nd layer, the type “EndPointLayer.toComp([0,0,0])“. My example: EndPointLayer=thisComp.layer("Position 2");
EndPointLayer.toComp([0,0,0])
Now to connect that line to the next point, you would just duplicate the beam effect, and your startpoint will the endpoint of the first effect(position 2) and the end point will be Position 3. Finally check the setting “composite on original:
Check out my example project to and see if it helps you figure this out, I added a camera you can turn on an off too.: 7245_beamseffect.aep.zip
Johnny Cuevas, Editor
Thinkck.com
“I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
—THOMAS EDISON on inventing the light bulb.