From: "Py Fave" Received: from mail-il1-f171.google.com ([209.85.166.171] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7477200 for AE-List@media-motion.tv; Wed, 11 Dec 2019 09:49:25 +0100 Received: by mail-il1-f171.google.com with SMTP id w13so18767617ilo.1 for ; Wed, 11 Dec 2019 00:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PY+OX09PwKW06haUYJDrz/zYF0m5lX0cMwOM2y78BFo=; b=BtzoR/tUH1ytOvllRvpJ2LZYkHdMp2jt/pLRQmQnDDUFkqAkCQJqd3mztf+tx+VZNm 06Yz4BhgNpGuxExtMT30ysxos/dBd8Hf18iSOs9iWwTcQXQpcSHhlGcEWF1ceVtxl4FN l+BDBqmSdKUU4PT6eFz/yq7nzAws8EgXuKX5PwS1fxcvF1qBlmF2ktMx4HOVE60YcGm0 NJ9d9+55dNeWaXT09KQdXBAC/a3sGW4z/e4k2KZuwOvxisz6lxPc+E8xmznJT/tAr777 vaQ5Zx3WdiyWhxax5ncvaXOCianjajw1zHH1XWjdy05ztiRvZeXWwGxXt1aTQqld43Vx 5eoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PY+OX09PwKW06haUYJDrz/zYF0m5lX0cMwOM2y78BFo=; b=XwlUibR03R3VuOPQvXp/XxmnFaYYtyKPP46CDa/EJQwdhcuhvK0EF1xGQtDzPqvzFL 3WWC3/7tI0k8MupRp8cJZgUGzjUrsGHKF98mSJyduwcPPEcii5heTUmd+oQUeIAj0OxF BcqkTGLVIy5sE3PRVFTlQp8vT40a6dfhVUEQ/ssloB2ocNAdTkW7o4/ihSF772OKQhgK /Q4FCi6AvU+V67Nb7axHsxcRtBh4olq2X2T7Dze6QozbtIQZeOVCNlQh6uqzATmDvd6c r/Dhe/CFaajE/dhxNLDlYbUuA+EJ6MGIS1+xS0irZ9BGTh1xKBCY4dOIWPDlAESovl40 TIrQ== X-Gm-Message-State: APjAAAXSa7c17uBvZ5tI4g9TKoMkiwvoqbbMrhhNNyuYKBLO7Vdhckrh C9ZauzTFKGjkFwDLB/CDdzy7fCBtyimMMp375D8bTLVN58U= X-Google-Smtp-Source: APXvYqyA4Pt1MdFCpAPrXzr/nmUPuOyGc/rDoccUgRMRkxLk4fodYQzOqfUj3F5W1O556HXZFk3lYgeKpcP/Rb/gELU= X-Received: by 2002:a92:3dd0:: with SMTP id k77mr1927964ilf.3.1576054163872; Wed, 11 Dec 2019 00:49:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 11 Dec 2019 09:49:13 +0100 Message-ID: Subject: Re: [AE] Expressions help To: After Effects Mail List Content-Type: multipart/alternative; boundary="00000000000095a2d7059969b42c" --00000000000095a2d7059969b42c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable you should check dan ebberts's motionscript.com thisComp.layer("TRACK 6").transform.position is a bidimensional array: x and y to get x use thisComp.layer("TRACK 6").transform.position[0] y is thisComp.layer("TRACK 6").transform.position[1] you are looking for toComp etc ... vector space transforms. Le mer. 11 d=C3=A9c. 2019 =C3=A0 08:25, Dan Ebberts a =C3=A9crit : > I think I'd have to see how you have it set up and how it's not working. > Can you coble together a sample project? > > > > Dan > > > > *From:* After Effects Mail List > *Sent:* Tuesday, December 10, 2019 10:03 PM > *To:* After Effects Mail List > *Subject:* Re: [AE] Expressions help > > > > > > Couple more expressions questions, I sure could use help solving this one= . > > > > > > I'm trying to animate "direction" from an lighting effect and add this > "direction" animation to another layers position but the expression keeps > breaking. > > > > Imagine a lighting bolt from your hand, shooting out and locking to a > moving target. I've got the target track position, but I can't seem to > write the expression correctly to add the target position AND add my hand > key animation together. > > > > I've just tried to use a simple "+" but that's not working. > > > > effect("Advanced Lightning")("Direction") + thisComp.layer("TRACK > 6").transform.position > > > > > > Lastly, how would one write the expression so I could access a world > position from a layer? > > > > for example, I have a layer with a still using puppet tool I want the > connect too. but this still is also parented to another layer for a trac= k. > > > > effect("Advanced Lightning")("Origin") + > thisComp.layer("ELEMENT.png").effect("Puppet").arap.mesh("Mesh > 1").deform("Puppet Pin 2").position > > > > Thanks, > > John > > > --00000000000095a2d7059969b42c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
you should check dan ebberts's motionscript.com

thisComp.layer("TRACK 6").transform.position is a bidimensional = array: x and y
to get x use=20 thisComp.layer("TRACK 6").transform.position[0]

y is=20 thisComp.layer("TRACK 6").transform.position[1]

you are looking for toComp etc ... vector space transforms.
<= div>



Le=C2=A0mer. 11 d=C3=A9c. 2019 =C3=A0= =C2=A008:25, Dan Ebberts <AE-= List@media-motion.tv> a =C3=A9crit=C2=A0:

I think I'd ha= ve to see how you have it set up and how it's not working. Can you cobl= e together a sample project?

=C2=A0

Dan

=C2=A0

From: After= Effects Mail List <AE-List@media-motion.tv>
Sent: Tuesday, December= 10, 2019 10:03 PM
To: After Effects Mail List <AE-List@media-motion.tv&= gt;
Subject: Re: [AE] Expressions help

=C2=A0

= =C2=A0

Couple more expressi= ons questions, I sure could use help solving this one.

=C2=A0

=C2=A0

I'm t= rying to animate "direction" from an lighting effect and add this= "direction" animation to another layers position but the express= ion keeps breaking.

<= /u>=C2=A0

Imagine a lighting bo= lt from your hand, shooting out and locking to a moving target.=C2=A0 I'= ;ve got the target track position, but I can't seem to write the expres= sion correctly to add the target position AND add my hand key animation tog= ether.

=C2=A0<= /u>

I've just tried to use a simpl= e "+" but that's not working.

=C2=A0

effect("Advanced Lightning")("Direction") + thisComp= .layer("TRACK 6").transform.position

=

=C2=A0

=C2=A0

Lastly,=C2=A0 how would one write the expression so I could acce= ss a world position from a layer?

=C2=A0

for exa= mple, I have a layer with a still using puppet tool I want the connect too.= =C2=A0 but this still is also parented to another layer for a track.=

=C2=A0

=

effect("Advanced Lightning")("Or= igin") + thisComp.layer("ELEMENT.png").effect("Puppet&q= uot;).arap.mesh("Mesh 1").deform("Puppet Pin 2").positi= on

=C2=A0<= /p>

Thanks,

John

=C2=A0

--00000000000095a2d7059969b42c--