2D look at expression in After Effects

Add this to rotation and replace the first line reference to your layer.
L = thisComp.layer(“other layer”); //replace the layer we’re looking at;
p1 = L.transform.position;
p2 = transform.position;

dir = p1 – p2; radiansToDegrees(Math.atan2(dir[1], dir[0])) + value;

Click here to receive more tips by email.