Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Glean the size of the bounding box created by a continuously rasterized precomp?

  • Glean the size of the bounding box created by a continuously rasterized precomp?

  • Ryan Hauser

    December 1, 2021 at 11:32 pm

    As the title suggests. Is there any way to use sourceRectAtTime or similar to glean the size of the bounding box created by a continuously rasterized precomp? When I use the sourceRect at Time function, it returns the size of the unmodified, non-continuously rasterized layer. I can get this particular thing working if I am checking the sourceRect of a shape layer whose animations stay within the shape layer, but I want to get this working for precomps as well.

  • Trent Armstrong

    December 2, 2021 at 1:32 pm

    Just spitballing here …

    Not sure how efficient it is, but maybe you could put four nulls in your precomp to that are programmed to use position themselves at the four furthest points of your elements in the precomp and average out the Z position. Then, when you continuously rasterize, you’ll have the bounds already located and would be able to use toComp() to locate the null positions and extrapolate your desired result.

    This is a cool problem to solve! Following!

    Trent

Viewing 1 - 2 of 2 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy