Return-Path: Received: from mrs1.tnib.de ([81.92.164.162] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4900133 for AE-List@media-motion.tv; Wed, 14 Nov 2012 22:05:14 +0100 Received: from [192.168.178.31] (ppp-82-135-89-213.dynamic.mnet-online.de [82.135.89.213]) by mrs1.tnib.de (Postfix) with ESMTPA id B801C44558 for ; Wed, 14 Nov 2012 22:08:28 +0100 (CET) Subject: Re: [AE] get z position of parented layer? References: From: Akira Endo Content-Type: multipart/alternative; boundary=Apple-Mail-A5DE6872-F8F9-4BD0-BF61-F40FD21CADE2 X-Mailer: iPhone Mail (10A523) In-Reply-To: Message-Id: <257B6A01-A4CF-49D1-94EE-A36DC20707B3@akira-endo.de> Date: Wed, 14 Nov 2012 22:08:30 +0100 To: After Effects Mail List Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) --Apple-Mail-A5DE6872-F8F9-4BD0-BF61-F40FD21CADE2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, maybe this works. x =3D thisComp.layer("target"); myVariable =3D x.toWorld(x.anchorPoint); myVariable[2] Sent from my iPhone Akira Endo =E2=80=A2 digital artist =E2=80=A2 art director =E2=80=A2 3d animation =E2=80=A2 compositing =E2=80=A2 motion graphics =E2=80= =A2 - tel. +49 89 200 619 03 cel. +49 172 56 33 738 mail@akira-endo.com www.akira-endo.com Am 14.11.2012 um 21:32 schrieb "scott.aelist" : > I'm trying to connect a particular emitter point to the position of a 3d n= ull layer. I normally use the expression Dan Ebberts and other people have w= ritten: > x =3D thisComp.layer("target"); > x.toWorld(x.anchorPoint) > ..but since the z position is split out in particular, I don't know how to= connect it.=20 >=20 > I tried: > x =3D thisComp.layer("target").transform.position[2]; > x.toWorld(x.anchorPoint) > ..but AE gives me an error. Anyone know how to write this?> >=20 > thanks=20 --Apple-Mail-A5DE6872-F8F9-4BD0-BF61-F40FD21CADE2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,

maybe this works.

x =3D th= isComp.layer("target");
myVariable =3D x.toWorld(x.anchorPoint);
myVariable[2]

Sent from my iPhone
Akira Endo =E2=80=A2 digital artist&nb= sp;=E2=80=A2 art director
=E2=80=A2 3d animation =E2= =80=A2 compositing =E2=80=A2 motion graphics =E2=80=A2

-
tel. &nbs= p;  +49 89 200 619 03
cel.    +49 172 56 33 738
ma= il@akira-endo.com
www.akira-endo.com

Am 14.11.2012 um 21:32 schrieb "scott.aelist" &= lt;scott.aelist@gmail.com>:=

I'm trying to connect a particular emitter point to the position= of a 3d null layer. I normally use the expression Dan Ebberts and other peo= ple have written:
x =3D thisComp.layer("target");
x.toWorld(x.anchorPo= int)
..but since the z position is split out in particular, I don't know how to c= onnect it.

I tried:
x =3D thisComp.layer("target").transform.posi= tion[2];
x.toWorld(x.anchorPoint)
..but AE gives me an error. Anyone k= now how to write this?>

thanks
= --Apple-Mail-A5DE6872-F8F9-4BD0-BF61-F40FD21CADE2--