Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Aligning a Lower third to a specific position in the based on the with of a box

  • Dan Ebberts

    November 22, 2023 at 4:39 pm

    Try this for the null’s position (set leftEdge to your desired x value):

    leftEdge = 35;
    L1 = thisComp.layer("Shape Layer 1");
    x1 = L1.toComp([L1.sourceRectAtTime(time,false).left,0])[0];
    L2 = thisComp.layer("Shape Layer 2");
    x2 = L2.toComp([L2.sourceRectAtTime(time,false).left,0])[0];
    L3 = thisComp.layer("Shape Layer 3");
    x3 = L3.toComp([L3.sourceRectAtTime(time,false).left,0])[0];
    xMin = Math.min(x1,x2,x3);
    delta = leftEdge - xMin;
    value + [delta,0]
  • Emma Beinish

    November 22, 2023 at 4:53 pm

    Hi Dan,

    This has magically worked, thank you so much this is amazing 🌟

  • Brie Clayton

    November 22, 2023 at 8:37 pm

    Thanks for solving this Dan!

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