-
Accessing a single part of a text layer to create highlights using expressions
I’m creating a .Mogrt for someone, and I want to add a highlight functionality. What I mean by this is have the ability to target a certain segment of the text, and apply different text formatting than what is used overall by the text layer. Perhaps the default text is 50pt. white Arial, but the highlighted area needs to be 55pt. Orange bold Arial.
The way I want to go about it is this:
1.) Create a slider. This slider defines the text index the highlight will begin on; EG the highlight begins on the 14th character
2.) Create a second slider. This slider defines the number of characters the highlight will effect continuing from the start position of the first slider.
As a secondary questions on this sort of operation, let’s say I have a number represented in a text box. Using only a single text layer, is it possible to have everything to the left of a decimal be one color, and everything to the right of the decimal be a different color?