target = thisComp.layer("Target");
targetPos = target.toWorld(target.anchorPoint);
delta = targetPos - thisLayer.position;
radians = Math.atan2(delta[1], delta[0]);
radiansToDegrees(radians);
Calculates the angle between two layers and points one to another.