-
Making waves with path expressions
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:
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.
Sorry, there were no replies found.