Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Making waves with path expressions

  • Making waves with path expressions

    Posted by Gergely Bencsik on August 15, 2021 at 3:08 pm

    Hi there!

    Not really a question, just sharing what I discovered recently, and had a lot of fun playing with it. Used it in my video here:

    https://youtu.be/CTllCx5pHvM

    In this expression I set up a bunch of points on a horizontal ‘X’ direction line, and created y values based on a slider ‘Lead’. The core of the trick is to delay the input value based on x. So you define a wave speed, and then divide your x coordinate with the speed to get the ‘time to get there’. Then animate the slider with keyframes however you wish, it will propagate it down the line.

     

    N=200;
    Length = 600;
    Wave_speed = 200;
    wave_points = [];
    for(i=0; i<N;i++)
    {
    x = i/N * Length;
    wave_time = x/Wave_speed;

    // slider effect named ‘Lead’
    y = -effect(“Lead”)(1).valueAtTime(time-wave_time);
    wave_points[i] = [x,y];
    }

    createPath(wave_points, [], [], false)

     

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Gergely Bencsik replied 4 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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