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 5289144 for AE-List@media-motion.tv; Mon, 18 Nov 2013 23:16:44 +0100 Received: by mail-vb0-f49.google.com with SMTP id o19so5088240vbm.36 for ; Mon, 18 Nov 2013 14:18:42 -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=EOGrzYhqyhRkyydWY00R7m+eWnU8GvpRiEmVPp5JjR0=; b=DdA3bJvTJ3UB1R+tuDNl9PQDQxTnyRnGCwqqtQ1VZNOlz2SDRkqGTKNievfJv1uYET jvgsESPge1HxfoPfkv82Y3qU6douCJZfH9UfiXe3jEcSCN8+vmv3H1J3GOD8KvH1YmM+ VC6SbzE0U4DFAG5KeiA+BmmHeTBh4zSaRNmx+4LGK52s9GnKMVX4hriXvbzdefDTxW3T nRl/2n9KxksRNhavre0q+pDxyk/ElR0eJ7sg3oC3WngIzU4G2U4v2R7R8yzHLC9PD5Mu fNeHVV1ZnGshUFsw98dUPDcpfHfdxZNoEGJSCiEIIe95jey6MCB4vzaxFSQHYSiL8/Qy Mnaw== X-Gm-Message-State: ALoCoQlgwa50rKKjvCOSPMi4ewNM4RO1/OoWjEUZJDDWfzy1WYyKtmYDoIBsinRbRg1Hwp6f30V6 X-Received: by 10.220.186.202 with SMTP id ct10mr18025115vcb.14.1384813122056; Mon, 18 Nov 2013 14:18:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.45.66 with HTTP; Mon, 18 Nov 2013 14:18:21 -0800 (PST) In-Reply-To: References: From: Robert Kjettrup Date: Mon, 18 Nov 2013 23:18:21 +0100 Message-ID: Subject: Re: [AE] Expression to orient a layer to same direction a Camera To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7b676fd0388cc804eb7aeed9 --047d7b676fd0388cc804eb7aeed9 Content-Type: text/plain; charset=ISO-8859-1 doh...!!! Dead simple when i figured it out. Just use the built in expression function LookAt, but put in the camera position and its target into the fromPoint and atPoint instead of the layers own position and the camera position. Of course i figure this out soon after i had sent the mail before after having struggled with way too complex expressions :-D just a head-up to anyone that might find this useful info :-) - Robert 2013/11/18 Robert Kjettrup > Hi > > I cant seem to get my head around something that ougth to be quite simple. > > How can i have a 3d layer orient in the same direction as a camera, and > not look at the camera as the built in function does, im trying to have the > layer point in the same parrallel way as the direction of the camera to its > target. > > I think i need to get the vector from the camera to its parent and somehow > use that in the orientation on the layer i want to rotate? > I have also tried to parent a null to the camera, and tried to get the > de-parented orientation of the null and link that to the layer, but i > neither can get that to work in any useful way. > > i guess im a bit lost on how to get this to work. This 3d rotation stuff i > have never really gotten figured out. > > Any one out there with some good hints? > > - Robert > > --047d7b676fd0388cc804eb7aeed9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
doh...!!!
Dead simple when i figured it out.
=

Just use the built in expression function LookAt, but p= ut in the camera position and its target into the fromPoint and atPoint ins= tead of the layers own position and the camera position.
Of course i figure this out soon after i had sent the mail before afte= r having struggled with way too complex expressions :-D

just a head-up to anyone that might find this useful info :-)

- Robert

<= /div>



2013/11/18 Robert Kjettrup <robert@st= vmayday.dk>
Hi

I cant seem to get my head around something that ougth = to be quite simple.

How can i have a 3d layer orie= nt in the same direction as a camera, and not look at the camera as the bui= lt in function does, im trying to have the layer point in the same parralle= l way as the direction of the camera to its target.

I think i need to get the vector from the camera to its= parent and somehow use that in the orientation on the layer i want to rota= te?=A0
I have also tried to parent a null to the camera, and trie= d to get the de-parented orientation of the null and link that to the layer= , but i neither can get that to work in any useful way.

i guess im a bit lost on how to get this to work. This = 3d rotation stuff i have never really gotten figured out.=A0

=
Any one out there with some good hints?

- Robert


--047d7b676fd0388cc804eb7aeed9--