Mailing List AE-List@media-motion.tv ? Message #41310
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] LookAt() in 2D space?
Date: Thu, 15 Dec 2011 12:54:59 -0800
To: After Effects Mail List <AE-List@media-motion.tv>
This should work:
 
L = thisComp.layer("target");
v = L.toComp(L.anchorPoint) - toComp(anchorPoint);
radiansToDegrees(Math.atan2(v[1],v[0]))
 
 
Dan
 
From: Byron Nash
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
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster