View all expressions
Interpolation

Word Counter for Text Layers

Counts the number of words in a text layer and displays the result.

Contributed by:


myText = thisComp.layer("Source").text.sourceText;
myText.split(" ").length;

Word Counter for Text Layers

Practical use case

Useful for dynamically counting words in scripts, subtitles, or infographic animations.

Check out similar expressions

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

a mesh of elegant lines transparent image