Return-Path: Received: from qmta12.emeryville.ca.mail.comcast.net ([76.96.27.227] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4900109 for ae-list@media-motion.tv; Wed, 14 Nov 2012 21:40:04 +0100 Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by qmta12.emeryville.ca.mail.comcast.net with comcast id PQsk1k0041HpZEsACYjMbG; Wed, 14 Nov 2012 20:43:21 +0000 Received: from HPZ200 ([76.20.32.7]) by omta14.emeryville.ca.mail.comcast.net with comcast id PYjL1k00D09DSM08aYjLMH; Wed, 14 Nov 2012 20:43:20 +0000 Message-ID: <1297C64404F6425799EC5F06BDE8D500@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] get z position of parented layer? Date: Wed, 14 Nov 2012 12:43:21 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0056_01CDC265.A1090220" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 This is a multi-part message in MIME format. ------=_NextPart_000_0056_01CDC265.A1090220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Try it this way: x =3D thisComp.layer("target"); x.toWorld(x.anchorPoint)[2] Dan From: scott.aelist=20 Sent: Wednesday, November 14, 2012 12:32 PM To: After Effects Mail List=20 Subject: [AE] get z position of parented layer? 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 people = have written: 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 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?> thanks=20 ------=_NextPart_000_0056_01CDC265.A1090220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Try it this way:
 
x =3D=20 thisComp.layer("target");
x.toWorld(x.anchorPoint)[2]
 
Dan

 
Sent: Wednesday, November 14, 2012 12:32 PM
Subject: [AE] get z position of parented = layer?
 
I'm=20 trying to connect a particular emitter point to the position of a 3d = null layer.=20 I normally use the expression Dan Ebberts and other people have = written:
x =3D=20 thisComp.layer("target");
x.toWorld(x.anchorPoint)
..but since the = z=20 position is split out in particular, I don't know how to connect it. =

I=20 tried:
x =3D=20 thisComp.layer("target").transform.position[2];
x.toWorld(x.anchorPoin= t)
..but=20 AE gives me an error. Anyone know how to write this?>

thanks=20
------=_NextPart_000_0056_01CDC265.A1090220--