This is a really fun implementation of the expression that converts 3D coordinates into 2D coordinates.
There is one issue with using a Beam Effect. The layer must be 2D and therefore can easily pass in front of 3D layers and break the illusion. If you can figure out the relationship between those layers, you should be fine.
You would place your layers in 3D space with a 2D solid layer over them. Put a Beam Effect on the Solid and use this expression for the Starting Point:
target = thisComp.layer("YOUR FIRST LAYER");
fromComp(target.toComp(target.anchorPoint));
Ending Point:
target = thisComp.layer("YOUR SECOND LAYER");
fromComp(target.toComp(target.anchorPoint));
This works especially well with layers to which you are able to match the beam color.
See the Network Section of the promo video here:
http://www.mindbenderacademy.com
Trent
Trent Armstrong - Creative Cow Leader
http://www.dallasaeug.com