Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions layer to follow right edge of a scaling layer

  • layer to follow right edge of a scaling layer

    Posted by Riccardo Sinti on October 23, 2013 at 9:22 pm

    Hi all,

    I need a way to attach a layer to the right edge of a layer that I am scaling in X.
    It is a shape layer that I am scaling so I think there is an issue with getting the width vale of a shape layer so what ever expression might need an offset I could link to a slider effect.

    Thanks

    Kevin Camp replied 12 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    October 23, 2013 at 10:53 pm

    try this and see if it works…

    create a null, parent it to the shape layer and position it on the right edge of the shape layer.

    then try this expression on the position property of the layer that needs to stick the edge of the shape layer:

    target = thisComp.layer(“Null 1”);
    fromComp(target.toComp(target.anchorPoint));

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

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