Skip to main content
Participant
July 11, 2022
Question

Changing text colour midway through a sentence with expressions

  • July 11, 2022
  • 1 reply
  • 379 views

I am trying to create a MoGrt for a client, and at one stage the client needs to input 2 values in the same text sentence, the issue I'm having is I need the second input to be a different colour.

My source text field will look something like this:

 

"input 1" + (different colour)"input 2"

 

I cannot seem to find the right way to word this in expressions, to change colour at the marked point. I know how to link the text input using other text layers but can anyone help me with the expression to change the text fill colour before the second input.

 

Thanks!

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
Community Expert
July 11, 2022

As far as I know, you cannot control the color of individual letters with an expression on the source text. But you can do things like that with a range selector expression: https://www.youtube.com/watch?v=wgiaNEQit3g

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Participant
July 11, 2022

Thanks for the reply, I'll give it a shot and see how I go!