Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Scaling a rectangle path vertically in one direction only

  • Scaling a rectangle path vertically in one direction only

    Posted by Daniel Baznai on May 30, 2019 at 10:19 am

    I have a bar with a stroke and “shadow”. Trying to animate it and have it grow vertically in one direction but there doesnt seem to be an anchor point for the rectangle path only, and moving the normal anchor point doest seem to affect it. It still grows in both directions (this means having to keyframe the position to have it stay in place, which later might be a pita if I need to modify something else).

    This is the shape I need to grow up direction only.

    How do I do this? Using the layer scale distorts the corners, using the rec path scale makes it grow up and down.

    Kalleheikki Kannisto replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    May 30, 2019 at 4:01 pm

    You can use the position property of the rectangle to keep it in place as the y size changes. If you want to grow the rectangle up, the position expression would be (layer and path names may be different in your case):

    yPos = content("Rectangle 1").content("Rectangle Path 1").size[1]/2;
    value-[0, yPos]

    Kalleheikki Kannisto
    Senior Graphic Designer

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