Forum Replies Created

  • Bob Fares

    November 28, 2021 at 3:07 pm in reply to: center text to comp using left, top, width, height?

    Add this expression to the anchor point to center the anchor point to the middle:

    ———————————————————————-

    l= sourceRectAtTime().left;

    t= sourceRectAtTime().top;

    h= sourceRectAtTime().height;

    w= sourceRectAtTime().width;

    [l+w/2,t+h/2]

    —————————————————————————-

    to center the text in the middle of the comp, add this expression to the position of the same text:
    ——————————————————–

    cw = thisComp.width /2;

    ch = thisComp.height /2;

    [cw,ch]

    ———————————————————-

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