Return-Path: Received: from mail-vb0-f49.google.com ([209.85.212.49] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5325718 for AE-List@media-motion.tv; Sat, 21 Dec 2013 16:12:18 +0100 Received: by mail-vb0-f49.google.com with SMTP id x11so2041510vbb.36 for ; Sat, 21 Dec 2013 07:15:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=lCfFTX1tv5cc8mVDpnL+b3TFbi08ZLJcCUG8zMLWLg8=; b=FnkEy+0EOXn8WSyyt5q+Ok5+2k+Kt7GfAW8GAOprx/1KPNP0TLujdM+aRy7C8Iv/4p eyGmxFoj8UkxqBdZ5Ei7ELakr4mrpKUYG2MDjqvUXHNAPquz7VyObuTRAMM5zQYvgh3I Pgzgm6SA2NMP2G2V5tC6QlK/Dxvs1kkAI0hJQeu50YLJbaTa06CgK6UmYHeENwdPuKGp 3mI7GBfyJsxE94iMjm549pkTNDC5bH6hsoCaa4F0rwJc6Y9zDYC1s4kSTzgMnSTKxc4u iueS/CCW2W1UnSporXNVIQpSyi+x2o8rxEDeODD41zF2zQIxuzrGaRUece6DLmyUNT5o AR8Q== X-Gm-Message-State: ALoCoQnLdTOQPbTFCG8YevcFXyeIZsksHONb7YCfkVDCzDd8tNVkiOHOSi1JfxXU2fk72qwNrQYx X-Received: by 10.220.169.203 with SMTP id a11mr1477655vcz.26.1387638919843; Sat, 21 Dec 2013 07:15:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.45.66 with HTTP; Sat, 21 Dec 2013 07:14:59 -0800 (PST) In-Reply-To: References: From: Robert Kjettrup Date: Sat, 21 Dec 2013 16:14:59 +0100 Message-ID: Subject: Re: [AE] Expressions: Somewhere between Auto Orient and Auto Orient Y only To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7b6721c4e4f2fa04ee0cdc45 --047d7b6721c4e4f2fa04ee0cdc45 Content-Type: text/plain; charset=ISO-8859-1 i had the same exact problem a few weeks ago, and i hacked together an expression to do it. It actually does the same as Dan E's version, but ofcourse Dan's is much more elegant, simpler and works with the camera as a child under a null, something i struggled to get to work in my version :-D thanks Dan for this, i will save that as an animation preset... with one small adjustment, adding support for the active camera: cam = thisComp.activeCamera; v = cam.toWorldVec([0,0,1]); lookAt(position,position+v) and for anyone interested, here is my simple much worse version that breaks if the camera is parented: cam = thisComp.activeCamera; fromPoint = cam.position; atPoint = cam.pointOfInterest; lookAt(fromPoint, atPoint) DONT USE this :-D and my expression for making it work under nulls was more complicated and needed 2 extra nulls for the expression to look to. I couldnt get .toWorldVec to work with the cameras position and target, only with nulls. Happy Holidays to all on the AE-list. Robert 2013/12/20 Dan Ebberts > Try turning off auto orient and use this for orientation: > > v = thisComp.layer("Camera 1").toWorldVec([0,0,1]); > lookAt(position,position+v) > > > Dan > > *From:* Byron Nash > *Sent:* Friday, December 20, 2013 1:23 PM > *To:* After Effects Mail List > *Subject:* Re: [AE] Expressions: Somewhere between Auto Orient and Auto > Orient Y only > > Probably so, I just need to find that math! :-) > > > On Fri, Dec 20, 2013 at 3:28 PM, Lloyd Alvarez wrote: > >> Do mean like a multi-plane? http://aescripts.com/pt_multiplane/ >> >> Cheers, >> Lloyd >> >> >> On Fri, Dec 20, 2013 at 3:14 PM, Byron Nash wrote: >> >>> I need to keep some 3D layers flat in screen space. One immediately >>> reaches for the Auto Orient switch. It seems to get weird on the screen >>> edges as a layer approaches the camera. I tried Dan Ebberts go to >>> expression for Y only orientation( >>> http://motionscript.com/design-guide/auto-orient-y-only.html) but that >>> doesn't do the trick either. I bascially want the layers to be rotated so >>> they have no perspective but still stick to the 3D position. >>> >>> I'm sure this has been done before... >>> >> >> > > --047d7b6721c4e4f2fa04ee0cdc45 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
i had the same exact problem a few weeks ago, and i hacked= together an expression to do it. It actually does the same as Dan E's = version, but ofcourse Dan's is much more elegant, simpler and works wit= h the camera as a child under a null, something i struggled to get to work = in my version :-D

thanks Dan for this, i will save that as an animation preset= ... with one small adjustment, adding support for the active camera:
<= div>
cam =3D thisComp.activeCamera;
v =3D cam.= toWorldVec([0,0,1]);
lookAt(position,position+v)


<= div>and for anyone interested, here is my simple much worse version that br= eaks if the camera is parented:

cam =3D thisC= omp.activeCamera;
fromPoint =3D cam.position;
atPoint =3D cam.pointOfInterest;=
lookAt(fromPoint, atPoint)

DO= NT USE this :-D

and my expression for making it wo= rk under nulls was more complicated and needed 2 extra nulls for the expres= sion to look to. I couldnt get .toWorldVec to work with the cameras positio= n and target, only with nulls.


Happy Holidays to all on the AE-list.

Robert


2013/12/20 Dan Ebberts <debberts@com= cast.net>
Try turning off auto orient and use this for orientation:
=A0
v =3D thisComp.layer("Camera 1").toWorldVec([0,0,1]);
lookAt(position,position+v)
=A0
=A0
Dan
=A0
From: Byron Nash
Sent: Friday, December 20, 2013 1:23 PM
Subject: Re: [AE] Expressions: Somewhere between Auto Orient an= d=20 Auto Orient Y only
=A0
Probably so, I just need to find that math! :-)


On Fri, Dec 20, 2013 at 3:28 PM, Lloyd Alvarez <= span dir=3D"ltr"><lists@aescripts.com> wrote:
Do mean like a multi-plane? http://aescripts.com/pt_multiplane/
=A0
Cheers,=20
Lloyd


On Fri, Dec 20, 2013 at 3:14 PM, Byron Nash <byronnash@gmail.com> wrote:
I need to keep some 3D layers flat in screen space. On= e=20 immediately reaches for the Auto Orient switch. It seems to get weird o= n the=20 screen edges as a layer approaches the camera. I tried Dan Ebberts go t= o=20 expression for Y only orientation(http://motionscript.c= om/design-guide/auto-orient-y-only.html)=20 but that doesn't do the trick either. I bascially want the layers t= o be=20 rotated so they have no perspective but still stick to the 3D=20 position.=A0=20
=A0
I'm sure this has been done before...
=
=A0
=A0

--047d7b6721c4e4f2fa04ee0cdc45--