Return-Path: Received: from mail-vb0-f41.google.com ([209.85.212.41] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4857878 for AE-List@media-motion.tv; Wed, 26 Sep 2012 21:40:08 +0200 Received: by vbkv13 with SMTP id v13so1099744vbk.28 for ; Wed, 26 Sep 2012 12:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=KcrF5I+mTQDWZlKJ5SlVmH8hjDIgy2hTZlOj0VbCBF4=; b=hAelK082QyNC1M+fAM8DaFj1JqIGoriF7cD1QKFUeWZXMeFJFSdrwmxn0Be5EwfHQf Xg+v9Gz8KigE9Yni+5p1Ma0zV8Njkw/eZs8RrcZXcWU8nPQdW9YxYvnSldMOVFw0H5/s B2umtU5iSuFZFtkTSYr1OXizVUHNGKMr/ak28WwmAKm3+bGWcos6l5vSZv+yooVsgv7i c6GswZ4FQLIOYyeVg6L9spR7I/dOCRyPoEC4/zI5mVb7F7zKV9BMGjd+6e4jqYRD9p4H K6rlHRW7lvhWL41DtiWHmADqTV/euFkMZzsmQ6QQvVEv2u/SUEQmzVfeh6bbL/hobyj6 vUzA== Received: by 10.59.0.41 with SMTP id av9mr897886ved.32.1348688509849; Wed, 26 Sep 2012 12:41:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.18.212 with HTTP; Wed, 26 Sep 2012 12:41:28 -0700 (PDT) In-Reply-To: References: From: Robert Kjettrup Date: Wed, 26 Sep 2012 21:41:28 +0200 Message-ID: Subject: Re: [AE] expression for facing away layers in precomp To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7bdc992c8acf1804caa00305 X-Gm-Message-State: ALoCoQkr3TOD6H/NcVbZdmylho8PQ7OlVdl+85m7VWzz5OhJMVgW1QrbRCmvCCOYqrGNRVI/R00m --047d7bdc992c8acf1804caa00305 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable wow, Dan ofcourse you are the one to come up with some complex vector math I would never ever myself come up with that, vector math is very fuzzy for me :-D But... it begins to act weird when rotating the precomp in the main comp around. Right now i think i will finish the project the old fashioned way with all the layers in the maincomp. But if you are interested i have made a simplified project of my current project where you can take a look at what the problem is. try rotating any of the layers in 3d space and it doesn't correctly turns off the layers when the face away from the camera. If you just rotate the camera it seems to work. you can find the project here: http://ftp.stv.dk/120926_AE_3dlayersprecomp_project/ Robert Kjettrup / Grafiker / STV Mayday Mobil: 25 18 95 16 Mail: robert@stvmayday.dk 2012/9/26 Dan Ebberts > Sorry, I=92ve 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 > *Sent:* Wednesday, September 26, 2012 10:29 AM > *To:* After Effects Mail List > *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. >> > > --047d7bdc992c8acf1804caa00305 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable wow, Dan ofcourse you are the one to come up with some complex vector math<= div>
I would never ever myself come up with that, vector math= is very fuzzy for me :-D

But... it begins to act = weird when rotating the precomp in the main comp around.

Right now i think i will finish the project the old fas= hioned way with all the layers in the maincomp. But if you are interested i= have made a simplified project of my current project where you can take a = look at what the problem is. try rotating any of the layers in 3d space and= it doesn't correctly turns off the layers when the face away from the = camera. If you just rotate the camera it seems to work.

you can find the project here:


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


2012/9/26 Dan Ebberts = <debberts@comc= ast.net>
Sorry, I=92ve been asleep at the switch.=A0 :)
=A0
Try this:
=A0
L =3D comp("Main Comp").layer(thisComp.name);
C =3D comp("Main Comp").layer("Camera 1");
=A0
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
=A0
=A0
Dan
=A0
Sent: Wednesday, September 26, 2012 10:29 AM
Subject: Re: [AE] expression for facing away layers in=20 precomp
=A0
Hi
=A0
But thanks again for giving it a try.
The expression i want is also way over my head, hence me asking the gr= oup=20 here ;-)
=A0

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 com= p=20 camera. Unfortunately that's way out of my territory.
=A0

--047d7bdc992c8acf1804caa00305--