Return-Path: Received: from qmta02.emeryville.ca.mail.comcast.net ([76.96.30.24] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4857843 for ae-list@media-motion.tv; Wed, 26 Sep 2012 20:28:26 +0200 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta02.emeryville.ca.mail.comcast.net with comcast id 3tvD1k0071vN32cA2uW86i; Wed, 26 Sep 2012 18:30:08 +0000 Received: from HPZ200 ([76.20.32.7]) by omta22.emeryville.ca.mail.comcast.net with comcast id 3uW71k00d09DSM08iuW8t4; Wed, 26 Sep 2012 18:30:08 +0000 Message-ID: From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] expression for facing away layers in precomp Date: Wed, 26 Sep 2012 11:30:08 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0071_01CD9BDA.484E76D0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 This is a multi-part message in MIME format. ------=_NextPart_000_0071_01CD9BDA.484E76D0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sorry, I=E2=80=99ve been asleep at the switch. :) Try this: L =3D comp("Main Comp").layer(thisComp.name); C =3D comp("Main Comp").layer("Camera 1"); p1a =3D toWorld(anchorPoint); p1b =3D toWorld(anchorPoint + [0,0,1]); p2a =3D L.toWorld(p1a); p2b =3D L.toWorld(p1b); v1 =3D p2b - p2a; v2 =3D C.toWorld([0,0,0]) - p2a; if (dot(v1,v2) < 0) value else 0 Dan From: Robert Kjettrup=20 Sent: Wednesday, September 26, 2012 10:29 AM To: After Effects Mail List=20 Subject: Re: [AE] expression for facing away layers in precomp Hi But thanks again for giving it a try. The expression i want is also way over my head, hence me asking the = group here ;-) Robert Kjettrup / Grafiker / STV Mayday Mobil: 25 18 95 16 Mail: robert@stvmayday.dk 2012/9/26 scott.aelist oh right. I guess you'll need to find an alternative to the toCompVec = function then. Something you use with a null instead of the comp camera. = Unfortunately that's way out of my territory. ------=_NextPart_000_0071_01CD9BDA.484E76D0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Sorry, I=E2=80=99ve been asleep at the switch.  :)
 
Try this:
 
L =3D comp("Main Comp").layer(thisComp.name);
C =3D comp("Main Comp").layer("Camera 1");
 
p1a =3D toWorld(anchorPoint);
p1b =3D toWorld(anchorPoint + [0,0,1]);
p2a =3D L.toWorld(p1a);
p2b =3D L.toWorld(p1b);
v1 =3D p2b - p2a;
v2 =3D C.toWorld([0,0,0]) - p2a;
if (dot(v1,v2) < 0) value else 0
 
 
Dan
 
Sent: Wednesday, September 26, 2012 10:29 AM
Subject: Re: [AE] expression for facing away layers in=20 precomp
 
Hi
 
But thanks again for giving it a try.
The expression i want is also way over my head, hence me asking the = group=20 here ;-)
 

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


2012/9/26 scott.aelist <scott.aelist@gmail.com>
oh right. I guess you'll need to find an alternative = to the=20 toCompVec function then. Something you use with a null instead of the = comp=20 camera. Unfortunately that's way out of my = territory.
 
------=_NextPart_000_0071_01CD9BDA.484E76D0--