Draw sine wave with expression and WriteOn effect

Calendar Clock iconCalendar Clock icon

aftereffects

Table of contents

# Steps

  1. Create any Solid.
  2. Attach Write-on effect to the solid.
  3. Hold Alt key and click a clock icon left of Brush position property of Write-on effect.
  4. Enter the code snippet below into expression.

# Expression

startX = 100
startY = thisComp.height/2
freq = 1
amp = 10
x = startX + time * 100
y = startY + time * amp * Math.sin(Math.PI * time * freq)
[x, y]

Remote freelancer. A web and mobile application enginner.
Traveling around the world based on East Asia.
I'm looking forward to your job offers from all over the world!

Offer jobs or contact me!

Comments