Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Creating a path or shape layer expression for mathematical function

  • Creating a path or shape layer expression for mathematical function

  • Josh Lindo

    November 25, 2019 at 3:40 pm

    Hello,

    I need to find a way to draw this (image attached) asymptote as accurately as possible, preferably in a shape layer.

    Not really the expression type, pretty basic. This was my first attempt:

    In Path of Shape Layers:
    t=value[1];
    n=value[14];
    x= Math.cos(n*t)/t+t;
    y=Math.sin(n*t)/t+t;
    [x,y]

    I will continue trying to figure out a solution in the meantime, but if someone can easily show me how this can be done directly in a shape layer, I’ll owe you one.

    Thanks

    t=value[1];
    n=value[14];
    x= Math.cos(n*t)/t+t;
    y=Math.sin(n*t)/t+t;
    [x,y]

  • Oleg Pirogov

    November 25, 2019 at 5:22 pm

    I would do it like this:

    1) Make a Null
    2) Add this expression to its Position property:

    t=time/10;
    n=14;
    x=100*((Math.cos(n*t)/t)+t);
    y=100*((Math.sin(n*t)/t)+t);
    [x,y]

    3) Convert expression to keyframes:

    4) Create a new shape layer with empty path and copypaste Null’s Position keyframes to that Path:

  • Josh Lindo

    November 25, 2019 at 10:14 pm

    Brilliant!

    Exactly what I needed.

    Thank you.

    Josh Lindo

Viewing 1 - 3 of 3 posts

Log in to reply.

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