Use sin() to oscillate waves in After Effects
This expression will make something oscillate back and forth on the x axis, such as “puppet show” waves
amplitude = 10;
frequency = 3;
temp=amplitude*Math.sin(time*frequency)+amplitude;
// add the result to the current x pos
temp=temp+transform.position[0];
//plug the new x into slot 0. y is currently left unchanged
[temp, transform.position[1]]
Advertisement
Categories: After Effects
After Effects