View all expressions
Conditional

Flip Layer Vertically Based on Y Position

Flips a layer’s scale based on vertical position.

Contributed by:


flip = (position[1] > thisComp.height / 2) ? [100, 100] : [100, -100];
flip;

Flip Layer Vertically Based on Y Position

Practical use case

Useful for character animations, object mirroring, or interface elements that need to flip when they move above or below a certain point in the composition.

Check out similar expressions

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

a mesh of elegant lines transparent image