View all expressions
Motion

Circular Orbit Around a Layer

Makes a layer orbit around another at a set speed and radius.

Contributed by:


center = thisComp.layer("CenterLayer").position;
radius = 500; // Change this value or connect it to a Slider
speed = 2; // Change this value or connect it to a Slider
x = center[0] + Math.cos(time * speed) * radius;
y = center[1] + Math.sin(time * speed) * radius;
[x, y];

Circular Orbit Around a Layer

Practical use case

Great for animating satellites, planets, or circular motion effects.

Check out similar expressions

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

a mesh of elegant lines transparent image