Mailing List AE-List@media-motion.tv — Message #64113
From: Byron Nash <AE-List@media-motion.tv>
Subject: Re: [AE] sourceRectAtTime() time value
Date: Wed, 6 Jun 2018 13:04:31 -0400
To: After Effects Mail List <AE-List@media-motion.tv>
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öhl <AE-List@media-motion.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. 
Also note that the bounding box is given in layer space, so you have to do any calculations resulting from transforming or parenting the layer yourself.

Example: If you keyframe the source text of a text layer, the bounding box 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öhl
Marlow 52 , 18551 Sagard, Germany
Phone +49 (0)38302 - 88 75 61
info@mamoworld.com



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