Forum Replies Created

  • Patrick Middelkoop

    December 11, 2019 at 2:19 pm in reply to: Autoscale Text Box with fixed height ?

    Hi Jelle!

    You can in fact fix this very simple.

    In the Size-expression you can change the `h` to `value[1]`

    So it would look something like this:


    SIZE
    s=thisComp.layer("1 - Name LastName");
    w=s.sourceRectAtTime().width;
    h=s.sourceRectAtTime().height;
    [w, value[1]]

    POSITION
    s=thisComp.layer("1 - Name LastName");
    w=s.sourceRectAtTime().width/2;
    h=s.sourceRectAtTime().height/2;
    l=s.sourceRectAtTime().left;
    t=s.sourceRectAtTime().top;
    [w+l,h+t]

    This will now fix the standard height to the value you set it in After Effects itself.

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