Return-Path: Received: from mail-ve0-f171.google.com ([209.85.128.171] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5291656 for AE-List@media-motion.tv; Tue, 19 Nov 2013 22:28:33 +0100 Received: by mail-ve0-f171.google.com with SMTP id cz12so6509397veb.2 for ; Tue, 19 Nov 2013 13:30:32 -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=CDYbmjwxqWovXnj9h/8+Gdh2g4cdf50EakOWzIrqj0c=; b=Gyy1Wsd//rxq3y1Oc7O9abBpsCTWZSPCj/z0qqTRDISeCN/nrKrnH51ja5HpSohgXF +KQGp03i3KLuhwx15kLlqpq59FtJ9WBqIpH4dwKSENENPV5KDjmpiM2NIsxyN2JcIWT9 ATGW8vCN9Z2+hmG+zJZLRkczspNrtM/aWh9LMoaOQlWv1N2Ej8X4VdD36NtprdsHveJ9 Wmr5FKnSRyaFLQopWuaSBHmkMQDd5qbCOTwfgdzZhxlGFwMoX04XbmPeccs4Qwol7R19 UKQvYGU/JiMapdrZeY0Q4453XYiYg/+xkcy3npP8gBjmB0Cb8zBq391Mo6WO8pXaJrG5 5F9Q== X-Gm-Message-State: ALoCoQnlbEX9HtCPyy2/VCcCS4UrU2uGWJSxz/pRyU8HIsnu6V73AM8uRUQGoDaDvTuhIXz9Xrg5 X-Received: by 10.58.100.244 with SMTP id fb20mr22721856veb.6.1384896632808; Tue, 19 Nov 2013 13:30:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.45.66 with HTTP; Tue, 19 Nov 2013 13:30:11 -0800 (PST) In-Reply-To: References: From: Robert Kjettrup Date: Tue, 19 Nov 2013 22:30:11 +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=089e013a2708d987d904eb8e5fb1 --089e013a2708d987d904eb8e5fb1 Content-Type: text/plain; charset=ISO-8859-1 Hi thanks, yes that works. to me it looks like the same i did directly with the camera? But somehow it works with the nulls linked to the camera that is linked to another null, but the cameras own data doesnt return the same toWorld values... hmmm? Now i just need to use 2 extra nulls in my setup instead of using the position and point of interest directly from the camera. thanks again, i can continue work now :-) - Robert 2013/11/19 rendernyc > you can parent a null to your camera and then > > L=thisComp.layer("Null "); > > L.toWorld(L.anchorPoint) > > > will give you the position > > > On Tue, Nov 19, 2013 at 3:49 PM, Robert Kjettrup wrote: > >> Ok... i got the paralell orientation to work like i wanted, but have now >> stumbled over another problem related to this. >> >> I now need it to work with the camera parented to a null. Should be >> relatively simple, right? >> use toWorld to get the absolute position of the camera set as a child of >> the 3d null, or that is how i understood that toWorld worked. But i cant >> get it to return the correct values. >> Put the following expression on a 3d Point Control on any layer, and have >> a 3d camera parented to a 3d null. >> >> cam = thisComp.activeCamera; >> cam.toWorld(cam.position) >> >> this gives back some position that seems totally wrong. >> I have tried toWorld, fromWorld, toWorldVec... etc and nothing gives back >> the absolute position of the camera in the world space. >> Is there something i just dont understand with this, or??? >> >> - Robert >> >> >> >> 2013/11/18 Robert Kjettrup >> >>> 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 >>> >>> > > > -- > danny princz > > vimeo.com/rendernyc > --089e013a2708d987d904eb8e5fb1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi

thanks, yes that works.
to me it looks like the same i did directly with the camera? B= ut somehow it works with the nulls linked to the camera that is linked to a= nother null, but the cameras own data doesnt return the same toWorld values= ... hmmm?

Now i just need to use 2 extra nulls in my setup instea= d of using the position and point of interest directly from the camera.=A0<= br>

thanks again, i can continue work now :-)

- Robert


2013/11/19 rendernyc = <rendernyc@gmail.com>
you can parent a null to yo= ur camera and then

L=3DthisComp.layer("Null ");

L.toWorld(L.anchorPoint)


will give you the position

=


On Tue, Nov 19, 2013 at 3:49 PM, Robert Kjettrup <= robert@stvmayday.dk> wrote:
=
Ok... i got the paralell orientation to work like i wanted, but have = now stumbled over another problem related to this.

I now need it to work with the camera parented to a n= ull. Should be relatively simple, right?
use toWorld to get the absolute position of the camera set as a child= of the 3d null, or that is how i understood that toWorld worked. But i can= t get it to return the correct values.=A0
Put the following expression on a 3d Point Control on any layer, and = have a 3d camera parented to a 3d null.

cam =3D thisComp.activeCamera;
cam.toWorld(cam.position)

this gives back some position that seems totally wrong.
I have tried toWorld, fromWorld, toWorldVec... etc and nothing gives back t= he absolute position of the camera in the world space.
Is there = something i just dont understand with this, or???

- Robert



2013/11/18 Robert = Kjettrup <robert@stvmayday.dk>
doh...!!!
Dead simple when i figured it out.

Just use th= e built in expression function LookAt, but put in the camera position and i= ts 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 afte= r having struggled with way too complex expressions :-D

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

- Robert

<= /div>



--
danny princ= z

vimeo.com= /rendernyc

--089e013a2708d987d904eb8e5fb1--