This is doable with expressions. I've put together a quick example:

13728_shapes.aep.zip
Basically, we need to get the positions of the two layers, then figure out a point on a straight line between them. All of this is illustrated on the solid layer at the top of the comp.

For bonus points, I've also addressed rotation here (in 2D), but you could remove that expression if you didn't want the shape to follow the angle.

I'm sure you will have questions. Please feel free to ask!

Walter Soyka

Designer & Mad Scientist at

Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting

@keenlive [twitter] |

RenderBreak [blog] |

Profile [LinkedIn]