Fetching text from Essential Graphics gives me wrong result when I split it?
Hi!
I'm building a template .mogrt where I'm holding the source text as a attribute in the Essential Graphics template. It seems as if After Effects is treating the text in different ways depending on if the text is being fetched from the template or not. On a separate layer to the original text I have made two Slider Controls:
On the first Slider I have set the variable t with the entire source text, on the next line I say "t = t.split(" ");" and I end with "t.length;". This gives me 65 which is the correct number of words or characters separated by a space.
On the other Slider Control
"t = thisComp.layer("txt").text.sourceText; t = t.split(" "); t.length;" where the layer txt holds the entire source text from Essential Graphics.
This gives me 123 which is not the correct.
The only thing I can think of is that the application runtime handles requests from Essential Graphics after the ordinary Expressions is executed?
Is there a way to solve this?