Return-Path: Received: from mail-ob0-f169.google.com ([209.85.214.169] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4849376 for AE-List@media-motion.tv; Mon, 17 Sep 2012 19:19:38 +0200 Received: by obhx4 with SMTP id x4so9117947obh.28 for ; Mon, 17 Sep 2012 10:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=V/4zlF8klPFZTANIU61L3BMFyVHKPKecQR0a/+sazhc=; b=kYdy7uF1NdW4uYU4gLberpxqvTgEiW7MXyCvbpgHSkwCJQT1khbDZFWDtjvRwVmwKw 7Ant2208DsfiPtZJssl29cODODkjoQefIiMLYkzdBIuvrZYBKpSp8rlGpp7vrivz/3gB Pi5wol+SELRW63c1LEuBD25RlHnuwzE14Dut8RuV21IMk1QCliU826OSDFr4tH5C+sUv jpaQL0YgJYMJ+mnV5Z2ZwVrewV6UkZlteqYRSh6I6UqPjXaD6YOLpX9iwyScmSzBF975 nWcVZ9q9jDu9E0Nj+bm/P6FfKEZkslmwkYVtX8DqL8o8w9Y79fa4bU5b17Qhj/+d7fY5 UK0w== Received: by 10.60.7.36 with SMTP id g4mr12359199oea.112.1347902463372; Mon, 17 Sep 2012 10:21:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.28.229 with HTTP; Mon, 17 Sep 2012 10:20:43 -0700 (PDT) In-Reply-To: References: From: Byron Nash Date: Mon, 17 Sep 2012 13:20:43 -0400 Message-ID: Subject: Re: [AE] Layer Space transform onto parented layers To: After Effects Mail List Content-Type: multipart/alternative; boundary=e89a8f64347c856cbb04c9e8ff2d --e89a8f64347c856cbb04c9e8ff2d Content-Type: text/plain; charset=ISO-8859-1 How about the other direction? I have a layer that is parented inside a heirarchy. I need to match another layer to it that is unparented. Most of the motion is from the parent layers rotation. Also, I have moved the anchorpoints around so they are not in the center. I am trying different combinations of toWorld and fromWorld and can't seem to get it working. I need another one on the rotation to get it oriented correctly, would that go on Orientation or the individual axes? On Wed, Sep 5, 2012 at 6:06 PM, Darby Edelen wrote: > This line: > > parent.fromWorld(p); > > Should work no matter how deeply parented the null is. The reason being > that it will take a world position (p) and transform it into the > local/layer space of the current layer's parent. This is exactly how a > child's position is defined (i.e. in the parent's local/layer space). > > The part that is really important is the parent.fromWorld(). You could put > any world coordinate in there and it should work. > On Sep 5, 2012 11:19 PM, "Byron Nash" wrote: > >> Thanks for the expression. I haven't had a chance to test it yet. I did >> not think of stacking the toWorld and fromWorld. What if the parented null >> is several parent layers deep? >> >> On Wed, Sep 5, 2012 at 12:39 PM, Darby Edelen wrote: >> >>> 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" 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! >>>> >>> >> --e89a8f64347c856cbb04c9e8ff2d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How about the other direction? I have a layer that is parented inside a hei= rarchy. I need to match another layer to it that is unparented. Most of the= motion is from the parent layers rotation. Also, I have moved the anchorpo= ints around so they are not in the center. =A0I am trying different combina= tions of toWorld and fromWorld and can't seem to get it working. I need= another one on the rotation to get it oriented correctly, would that go on= Orientation or the individual axes?

On Wed, Sep 5, 2012 at 6:06 PM, Darby Edelen= <dedelen@gmail.com> wrote:
On Sep 5, 2012 11:19 PM, "Byron Nash" = <byronnash@gmai= l.com> wrote:
Thanks for the expression.=A0I haven't had a chance to test it yet. I d= id not think of stacking the toWorld and fromWorld. What if the parented nu= ll is several parent layers deep?=A0

On W= ed, Sep 5, 2012 at 12:39 PM, Darby Edelen <dedelen@gmail.com> wrote:

In order to transform the parented null t= o the unparented null you'll need to use an expression in this form; ap= plied to the parented null's position:

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

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

On Sep 5, 2012 5:37 PM, "Byron Nash" &= lt;byronnash@gmail= .com> wrote:
I need to "constrain" one null to another with Layer Space transf= orms. 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 t= ried various combinations of toComp, fromComp, toWorld, fromWorld, etc... W= hat is the proper way to apply a comp position value to a layer that is inh= eriting many levels of offsets?

Thanks!


--e89a8f64347c856cbb04c9e8ff2d--