Forum Replies Created

  • Chris Meadmore

    August 20, 2020 at 3:15 pm in reply to: Dynamic Type Maintaining Distances

    Again, thanks so much! Just had to combine that with my own to get the below and everything works perfectly.

    Thanks!

    w1 = thisComp.layer("HEADLINE_01").sourceRectAtTime().width;
    w2 = thisComp.layer("HEADLINE_02").sourceRectAtTime().width;
    w3 = thisComp.layer("HEADLINE_03").sourceRectAtTime().width;
    w4 = thisComp.layer("HEADLINE_04").sourceRectAtTime().width;
    maxWidth = Math.max(w1,w2,w3,w4);

    s = Math.min(100*900/maxWidth, 100);
    [s,s]

  • Chris Meadmore

    August 20, 2020 at 9:37 am in reply to: Dynamic Type Maintaining Distances

    Whilst I’ve got you here could I ask another question? ?

    In this project file I’ve got 4 Headline comps, each containing text layers with auto scaling applied.

    I need to set up an array so they all monitor each other’s scale and adjust to the smallest value. I’ve tried a few if/else expressions but can’t get it working.

    So in HEADLINE 4 – All text layers need to monitor each other’s scale and make sure they’re always consistent with one another.

    Can get it working with 2 layers but not 4.

    Thanks!

    https://gofile.io/d/eAFTbO

  • Chris Meadmore

    August 20, 2020 at 8:52 am in reply to: Dynamic Type Maintaining Distances

    Amazing, that set me on the right path, thank you!

  • That is PERFECT!

    Thank you

  • Thanks Scott!

    I’ve brought a coder into the mix and he produced the below expression which worked perfectly although we’re now struggling with trying to apply it to 3 layers and find the max value from them.

    Any ideas how to do this? Thanks so much for the help!

    Layer1Width = thisComp.layer("LINE_01").sourceRectAtTime().width;
    Layer2Width = thisComp.layer("LINE_02").sourceRectAtTime().width;

    Layer1Ratio = 100 * 1700 / Layer1Width;
    Layer2Ratio = 100 * 1700 / Layer2Width;

    Layer1Ratio = Layer1Ratio > 100 ? 100 : Layer1Ratio;
    Layer2Ratio = Layer2Ratio > 100 ? 100 : Layer2Ratio;

    if(Layer1Width > Layer2Width ) [Layer1Ratio, Layer1Ratio] else [Layer2Ratio, Layer2Ratio];

  • Never mind, still not solved.

    The layers are playing off each other perfectly but I need to cap them at 100% so they don’t scale beyond that.

  • Oops… think I solved it on my own. Just needed a smoke break!

    a = thisLayer.sourceRectAtTime().width;
    b = thisComp.layer("Layer A").sourceRectAtTime().width;
    c = 100*1700/a;
    d = 100*1700/b;

    if(a > b) [c,c] else [d,d];

  • Chris Meadmore

    February 26, 2019 at 8:12 am in reply to: Using Penner ease functions

    That worked perfectly, thanks! Is there any chance you can explain in a little detail what you did?

    I’m trying to test out other penner functions but still struggling to get them working with limited understanding.

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