View all expressions
Interpolation

Show Layer Count

Counts the total number of layers in the current composition and displays it dynamically in a text layer. Whenever you add or remove layers, the displayed number updates instantly, making it perfect for automated templates and project debugging.

Contributed by:


thisComp.numLayers;

Show Layer Count

Practical use case

Display (calculate) total layer counts in metadata overlays or track layer-heavy comps at a glance.

Check out similar expressions

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

a mesh of elegant lines transparent image