Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Use an expression to move a single Shape Layer path endpoint

  • Use an expression to move a single Shape Layer path endpoint

    Posted by Robert Merkel on October 21, 2010 at 8:30 pm

    I’ve drawn a simple two point Shape Layer path using the Pen Tool – no Bezier curves. Now I want to animate only the 2nd end-point using an expression. For example Wiggle the 2nd end-point up and down while the first end-point remains stationary.

    But am not sure what to append to the following expression of Path 1: content(“Shape 1”).content(“Path 1”).path

    I’d like to address only the Y value of the 2nd end-point in the path but am unable to find what type of (array?) this is to address it.

    Any help on explaining the Path object and how to address its point positions in the expression would be appreciated. Thanks!

    content("Shape 1").content("Path 1").path

    Dan Ebberts replied 15 years, 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 21, 2010 at 9:32 pm

    You can’t access individual path points with expressions. You can do it with a script, but you don’t get the live update. You could set up your animation with a dummy layer, and when you’re satisfied, have a script move the path point to match the dummy at each frame. I’m not sure if that would help with your particular situation though.

    Dan

  • Robert Merkel

    October 22, 2010 at 10:21 am

    Thanks for the reply Dan!
    That may work but I’m unfamiliar with the AE object model.
    I’m looking at: https://www.adobe.com/products/aftereffects/pdfs/aftereffectscs3_scripting_guide.pdf
    and not sure where to find the Path Object. Can you point me in the right direction?

    Thanks again,

    Bob

  • Dan Ebberts

    October 22, 2010 at 6:23 pm

    What you need to look at is the info about Shape objects. Also, if you don’t already have it, get Jeff Almasol’s rd:Gimme Prop Path script. You can use it to find the correct way to access pretty much anything:

    https://www.redefinery.com/ae/view.php?item=rd_GimmePropPath

    Dan

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