-
Finding the position of a specific character in a text layer
I am trying to create a trim path on the stroke of a text layer that is editable as text and not shapes, so I can just go in and change the text, and the trim path on the stroke will automatically change with the text.
The only way I could think to do this is to fake it. I am trying now to create individual layers for each character in the text which I will add a stroke layer style to, pre-comp, and then fake the trim path with an animated mask.
My trouble is this, I can create a layer for each letter using this:
nametext = comp(“CHANGE TEXT FOR EFFECT HERE”).layer(“TEST”).text.sourceText;
nametext.charAt(0);
But I can’t get the individual characters to align to the character positions in the text layer.
Is there a way to obtain the position for individual characters in the text layer so I can get my individual character layers X position to match the original text?
or, failing that, is there a way to get a trim path on a stroke for an editable text layer?