Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dynamically scaling 3×3 grid

  • Dynamically scaling 3×3 grid

    Posted by Chris Thomas on January 28, 2019 at 9:40 pm

    Hello! Trying like mad to create a dynamic 3×3 grid.

    I need something that scales the other cels when I resize a single cel; something along the lines of:

    I’m decent with scripting, but the math in this one is just too tough for me. I’d love a hand if anyone has done something like this in the past.

    Thank you!

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Alex Andry replied 2 years, 8 months ago 9 Members · 13 Replies
  • 13 Replies
  • Natalie Edler

    January 29, 2019 at 4:59 pm

    I unfortunately don’t have an answer for you, but am trying to do this exact same thing. I can’t figure out how to write the expression either….just following this in case you get a reply!

  • Paul Connors

    January 29, 2019 at 7:55 pm

    Hi. I’m just flying by but figured I’d give my two cents. Perhaps using a sourceRectAtTime along with “height” and “width” for each layer and then using the dimensions of the comp would be a place to start. For example, if your comp is 1920×1080 you’d want the sum of the widths of cells A1+B1+C1 to equal 1920 and the sum of the heights of cells A1+A2+A3 to equal 1080. I’m SURE there are way smarter people than me that might have a better way of doing this though. Good luck!

  • Chris Thomas

    January 29, 2019 at 10:10 pm

    Thanks for the thoughts, Paul! I’m still playing around with this today and will post any success I have.

    Fingers crossed—

  • Natalie Edler

    January 29, 2019 at 10:28 pm

    I’m still curious how to do this with expressions, but we found this plug-in that can achieve a similar effect to what you posted…

    You can put multiple rectangles within one shape layer and then control the scaling of the x and y dimensions and how they effect one another. So far it’s doing the trick for what I was trying to accomplish!

  • Kalleheikki Kannisto

    January 30, 2019 at 4:49 pm

    I believe it is going to turn into a circular problem the moment you try to do this with more than one rectangle shape. Meaning one where you have an expression in layer A trying to read the result of expression on layer B trying to read the result of expression on layer A. In my estimate it would work better by using nulls that controlled the vertical and horizontal separation points of the boxes, which would give you stable reference points to look up.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Cameron Walker

    February 19, 2019 at 8:59 pm

    Hi Chris,

    I made something a little while ago that might help. If you want to download this template and check it out, feel free:

    I’ve set this up so that the contents of each box are masked when the boxes shift/resize, but you could probably parent the precomps’ scale values to the controllers as well so they squish/stretch like your example.

    Anyway, hope it helps!

  • George Henderson

    August 8, 2019 at 5:20 am

    Hi Cameron,
    Could you kindly re-upload the file? The link above has expired.

    Many thanks!

  • Cameron Walker

    August 8, 2019 at 8:01 pm
  • George Henderson

    August 9, 2019 at 10:00 pm

    That’s perfect, thank you so much!

  • Julien Cervantes

    April 21, 2020 at 9:59 am

    Hi Cameron, Hi George
    It is just what i need actually.
    Could you kindly re-upload the file once more? The 2 previous links above have expired.

    Many thanks!

Page 1 of 2

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