From: "Byron Nash" Received: from mail-wm0-f49.google.com ([74.125.82.49] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 6461454 for AE-List@media-motion.tv; Wed, 06 Jun 2018 18:57:54 +0200 Received: by mail-wm0-f49.google.com with SMTP id e16-v6so12840510wmd.0 for ; Wed, 06 Jun 2018 10:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hMJGhQ3C7YT7OrNjfFrmHiKafIBMD0OhQFwXSAnPSDY=; b=l0GCmX7k2V/dI0ImnhbFhSevnbHxGV654qjFcKxAuwO2op0IN3sF7B3ME1JrCip0TB Y/QhdyR8fdVAnLJMewoqvB8Gu+XtlGA3BCBYbhMMILORAnkqrz+zqZh1HU8d4VbInUdD lksGfxIiZBcl+h7VkZPuej7lNLEjSL9cDs/Cq7iVLRN59T7tk9cyqOhM+AJnRSVfnmit KuhdX8UH0YHTj8dkjAZ9TSaYX/D+I09F7FlwYww4tRpQ/R6BWQONbclWqslj5xKaC0n9 uDjbRLA1d39Eb1KDjguaB9LPw4B9yYc5EmJeCdFj3K1iiK64hPb2b60SLG3mo2H1BqnM qNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hMJGhQ3C7YT7OrNjfFrmHiKafIBMD0OhQFwXSAnPSDY=; b=e/3BWDv1BjokqqRHto9x7BcFMw5QQI9OBOecBzaWJvt1mz47aS6zxMlJ/SPa6RmXGu Ddn6IxyVYbFs6YDQ4h/dInWB3HYEfW7dPS4NTvFiTr3xDM87GhwsAgSgk5JFAio2sgvO tPaHfM+egV9iDFP8fhbXP3ddS4ImBI48T5vgjKlMCxkoRwtyvNEUYmGWMbnO4A6nObAl EMLJ2cX1nH7fIADAhh029p672JHfrp6nJLpxJY8/YsRrhFn1O0MPoQ4ZTCr2da1WSQlh +q3QvOO2ANNAx4lQKunfKhsjpXio4NkTRp2VyOuJOy+ZNDDWTtl1r/VD5xrffBToTfS4 nw/w== X-Gm-Message-State: APt69E13f0BsXjfxTMXCBI4W9OS9PD3BN1hDLm5P8H1vggPv3mQ/0UJ4 1dtlKpxWv1FzAVZpLp+lOqHK/iCtMroLM9dPc9g= X-Google-Smtp-Source: ADUXVKKorOfdvmlwmUDzBLN9WhIMolk8xhwaAobn8/KgpM01KmjBYrtUG2Izsi4MHS/o5KmZJ6gCjhC/66ZTtS1Y8j0= X-Received: by 2002:a1c:2143:: with SMTP id h64-v6mr2580730wmh.114.1528304708301; Wed, 06 Jun 2018 10:05:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Jun 2018 13:04:31 -0400 Message-ID: Subject: Re: [AE] sourceRectAtTime() time value To: After Effects Mail List Content-Type: multipart/alternative; boundary="0000000000003f37ed056dfc2bc4" --0000000000003f37ed056dfc2bc4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable OK, that's what I thought. However, I had a case where I'm trying to limit the size of a layer based on a null's scale. But, the expression seemed to be looking at the layer in realtime. I changed one of the variables to use valueAtTime() instead of just getting the current value in hopes that it would return a static sourceRectatTime result. I'll take another look and see what I'm missing. On Wed, Jun 6, 2018 at 2:48 AM Mathias M=C3=B6hl = wrote: > > On 05 Jun 2018, at 20:56, Byron Nash wrote: > > I assumed that if I put in a specific time value in the function that it > would return the bounding box at that moment in time. Is that not how it > works? > > > That is how it works. > Also note that the bounding box is given in layer space, so you have to d= o > any calculations resulting from transforming or parenting the layer > yourself. > > Example: If you keyframe the source text of a text layer, the bounding bo= x > will change over time (since the content changes and hence its bounding > box). > If you move the layer by keyframing its position or parenting it, the > source rect will not change, as it only changes in comp space but not in > layer space. > > Cheers, > Mathias > > > *mamoworld.com simplify your cgi* > > Dr. Mathias M=C3=B6hl > Marlow 52 , 18551 Sagard, Germany > Phone +49 (0)38302 - 88 75 61 > info@mamoworld.com > > > --0000000000003f37ed056dfc2bc4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK, that's what I thought. However, I had a case where= I'm trying to limit the size of a layer based on a null's scale. B= ut, the expression seemed to be looking at the layer in realtime. I changed= one of the variables to use valueAtTime() instead of just getting the curr= ent value in hopes that it would return a static sourceRectatTime result. I= 'll take another look and see what I'm missing.

On Wed, Jun 6, 2018 at 2:48 AM Mathias M= =C3=B6hl <AE-List@media-motio= n.tv> wrote:

On 05 Jun 2018, at 20:56, Byron Nash <AE-List@media-motion.tv> wrote:
I assumed that if I put in a specific time value in the function= that it would return the bounding box at that moment in time. Is that not = how it works?

That is how it works.=C2=A0Also note that the bounding box is given in layer space, so you have to = do any calculations resulting from transforming or parenting the layer your= self.

Example: If you keyframe the source text of = a text layer, the bounding box will change over time (since the content cha= nges and hence its bounding box).
If you move the layer by keyfra= ming its position or parenting it, the source rect will not change, as it o= nly changes in comp space but not in layer space.

= Cheers,
Mathias

mamoworld.com
simplify your cgi

Dr. Mathias M=C3=B6hlMarlow 52 , 18551 Sagard, Germany
Phone +49 (0)38302 - 88 75 61
info@mamoworld.com=


=

--0000000000003f37ed056dfc2bc4--