Mailing List AE-List@media-motion.tv — Message #46642
From: Akira Endo <mail@akira-endo.de>
Subject: Re: [AE] get z position of parented layer?
Date: Wed, 14 Nov 2012 22:08:30 +0100
To: After Effects Mail List <AE-List@media-motion.tv>
Hi,

maybe this works.

x = thisComp.layer("target");
myVariable = x.toWorld(x.anchorPoint);
myVariable[2]

Sent from my iPhone

Akira Endo • digital artist â€¢ art director
• 3d animation • compositing • motion graphics •

-
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" <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 people have written:
x = 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.

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

thanks
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster