Mailing List AE-List@media-motion.tv ? Message #45560
From: Robert Kjettrup <robert@stvmayday.dk>
Subject: Re: [AE] 2d lookAt expression
Date: Thu, 30 Aug 2012 22:08:51 +0200
To: After Effects Mail List <AE-List@media-motion.tv>
 Nevermind... found an answer on Creative Cow from Dan himself:

p1 = thisComp.layer("Null 1").transform.position;
p2 = thisComp.layer("Null 2").transform.position;
d = p2 - p1;
radiansToDegrees(Math.atan2(d[1],d[0]))




Robert Kjettrup / Grafiker / STV Mayday
Mobil: 25 18 95 16
Mail: robert@stvmayday.dk


2012/8/30 Robert Kjettrup <robert@stvmayday.dk>
Hi

Right now i am stuck trying to write a seemingly simple expression. 
I want a normal 2d null to "look at" another 2d null and can't figure out what the expression should look like. 
LookAt() seems like it is only for 3d layers? and my goto resource for quick tips for expressions, Dan Ebberts motionscript.com doesn't have anything on something this simple :-)


Robert Kjettrup / Grafiker / STV Mayday
Mobil: 25 18 95 16
Mail: robert@stvmayday.dk

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster