Counts the number of words in a text layer and displays the result.
Contributed by:
myText = thisComp.layer("Source").text.sourceText;myText.split(" ").length;
Useful for dynamically counting words in scripts, subtitles, or infographic animations.
Use as a labeling system for templates, versioning slates, or project organization placeholders.
Automatically mirror both text and styling from a main layer - perfect for subtitles, translated text, or synced design systems.
Great for automating layouts where the number of text rows affects the design, such as captions, paragraphs, or dynamic subtitles.
Perfect for templates and animations where the number of characters, excluding spaces, plays a role in dynamic layouts, adjusting design elements, or enforcing text length limits.
Ideal for animations or templates where character count impacts design decisions, like creating dynamic layouts or limiting text lengths.