This should work:
L = thisComp.layer("target");
v = L.toComp(L.anchorPoint) - toComp(anchorPoint);
radiansToDegrees(Math.atan2(v[1],v[0]))
Dan
Sent: Thursday, December 15, 2011 12:35 PM
Subject: [AE] LookAt() in 2D space?
I
feel like I have done this before but I'm coming up dry so far. What is the
syntax for getting a 2D layer to point at another one? LookAt() seems to only
work for 3D layers.
thanks,
Byron