How to Highlight the First Word Automatically in After Effects

2 min
How to Highlight the First Word Automatically in After Effects
Details (2 min read)

How to highlight the first word in your text layer automatically?

  1. Create a text layer.
  2. Press Animate – Fill Color – RGB.
  3. Expand Advanced property and change Units to Index.
  4. Alt-click on the End property and paste an expression below.
var userText = text("ADBE Text Document");
userText.length > 0 ? userText.split(/s|W/)[0].length : 0;

Get 10% off when you subscribe to our newsletter

By subscribing you agree to your email being stored and used to receive the emails in accordance to our Privacy Policy
descount

How does it work?
The regular expression look for special characters like space, semicolon, enter, etc. and separates the match from the rest of the text.
How to highlight only the first letter?
Remove expression from End property and set the value to 1.

Our Bestsellers

Summary ( min read)

Our Bestsellers