View all expressions
Transformation

Center Anchor Point Expression

Calculates the center point of a text layer, based on its bounding box.


top = sourceRectAtTime().top;
left = sourceRectAtTime().left;
x = left + (sourceRectAtTime().width / 2);
y = top + (sourceRectAtTime().height / 2);
[x,y]

Center Anchor Point Expression

Practical use case

Aligns other elements (like icons or graphics) to the exact center of a dynamically sized text box, keeping the layout balanced.

Check out similar expressions

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

a mesh of elegant lines transparent image