-
Get the character index as the animator sees it.
Hi guys. I am running in a bit of trouble and was wondering if it is fixable in any way. Let’s say I want to highlight the letter “n” in the word “fine” and I have a font that has a ligature character for “fi”.
I am using a text animator with fill color property.
According to javascript (using indexOf()), n is the third letter in the word. According to my text animator, it is the second (because the first fi is considered a single letter). And this problem gets worse if I have more ligatures in the text.
Is there a way to get the index of a character as the text animator counts them? I know that this information is available to After Effects because when changing percentage to index in the text animator selector, the animator gets the correct number of characters (3 if ligatures is enabled, 4 if not).
I hope I was clear enough, thank you!