I'm just working on a little project. I have an object that has animated position, and i wanted it to aim at the certain point. So here is a short amateurish expression i wrote:
x1 = content("Shape 1").transform.position;
y1 = content("Shape 1").transform.position;
x2 = -120;
y2 = 130;
value + [radiansToDegrees(Math.atan2(y1-y2, x1-x2))]
x1 and y1 is the object position (i was working with a shape, but you could pickwhip anything), while x2 and y2 are the target point coordinates. And i love that the after effects has built-in protection against division by 0
All suggestions or fixes are welcome.