Happy Holidays United States Sale! Feb 5th Only! Save 50% Sitewide!
Special Offer Buy Every Package for $8412 $149
You save $8263 (99% off)

How to Highlight the First Word Automatically in After Effects

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;

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.

Welcome to AEJuice Points
Become a member
With more ways to unlock exciting perks, this is your all access pass to exclusive rewards.
Already have an account? Sign in
AEJuice Points
Earn more AEJuice Points for different actions, and turn those points into awesome rewards!
Give your friends a reward and claim your own when they make a purchase.
They get
$15 off discount
You get
$15 off discount
AEJuice Points
Share on Facebook
3 Points
Like on Facebook
1 Point
Follow on Instagram
1 Point
Place an order
3 points for every $100 spent
Celebrate a birthday
2 Points
Ways to spend
Use at checkout
1 Point = $1
Use your points at checkout with any purchase. Points will not expire.