Mailing List AE-List@media-motion.tv ? Message #45647
From: Darby Edelen <dedelen@gmail.com>
Subject: Re: [AE] Layer Space transform onto parented layers
Date: Wed, 5 Sep 2012 09:39:18 -0700
To: After Effects Mail List <AE-List@media-motion.tv>

In order to transform the parented null to the unparented null you'll need to use an expression in this form; applied to the parented null's position:

l = thisComp.layer("unparented null");
p = l.toWorld(l.anchorPoint);
parent.fromWorld(p);

I can't confirm this is correct at the moment, but it should at least be close.

On Sep 5, 2012 5:37 PM, "Byron Nash" <byronnash@gmail.com> wrote:
I need to "constrain" one null to another with Layer Space transforms. The null that I am matching FROM is not parented at all. The one I am wanting to add the expression TO is parented several levels deep. I have tried various combinations of toComp, fromComp, toWorld, fromWorld, etc... What is the proper way to apply a comp position value to a layer that is inheriting many levels of offsets?

Thanks!
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster