View all expressions
Motion

Create Procedural Spiral Path

Generates a fully procedural spiral path in After Effects with precise control over radius, number of turns, and point density. The path updates dynamically as you tweak the sliders, giving you flexible, customizable spirals without manually drawing shapes.

Contributed by:


// Apply to Path
turns = effect("Turns")("Slider");
rad = effect("Radius")("Slider");
pnts = effect("Points")("Slider");
pts = [];for (i = 0; i <= pnts; i++){
t = i / pnts;
angle = t * Math.PI * 2 * turns;
r = t * rad;  x = Math.cos(angle) * r;
y = Math.sin(angle) * r;
pts.push([x, y]);
}
createPath(pts, [], [], false);

Create Procedural Spiral Path

Practical use case

Perfect for data visualizations, hypnotic motion backgrounds, generative art, or dynamic motion graphics where you need smooth, customizable spiral animations.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image