Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sine Wave Path - After Effects
S=effect("Speed")("Slider");
A=effect("Amp")("Slider");
F=effect("Freq")("Slider")/3.6;
R=effect("Resolution")("Slider");
W=effect("Width")("Slider")
P=[];
for (i=0;i<R;i++){
P.push([W/R*i,Math.sin(time*S+i/(R/F))*A]);}
createPath(P,[],[], false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.