-
Counter – no moving text + no monospace
I’m creating a MOGRT in which I would like the user to input text containing numbers. The goal is to automatically detect and animate these numbers. I’ve managed to accomplish this, but as you might expect, the text moves around. To address this, I’ve split the text layer into two separate layers: one containing everything before the number, and the second containing the number and everything after it. I’ve linked them, and everything works fine.
However, I’ve encountered a couple of issues. First, if the user wants to include more than one number, the current setup won’t work. Second, if the user inserts a line break, it breaks the expressions.
My question is: has anyone figured out a way to animate numbers within a text layer without the surrounding text moving?
As a potential solution, I’m considering using two text layers: one where the numbers are invisible, and the other where the text is invisible. I’m hoping to combine both layers and achieve the desired result.
If you’re curious, I’ve attached a screenshot that shows the code used to detect and count any numbers within the text.