-
Numbers to text…
Hi.
I am trying to have a live text layer take the contents of another live text layer (an incremental counter) and output it as words eg. 15289 = “fifteen thousand two hundred and eighty-nine”
Here’s an example of what I’ve done so far:
tInteger = parseInt(thisComp.layer(“numbers”).text.sourceText);
tTextString = [“zero”, “one”, “two”, “three”, “four”, “five”, “six”, “seven”, “eight”, “nine”, “ten”, “eleven”, “twelve”, “thirteen”, “fourteen”, “fifteen”, “sixteen”, “seventeen”, “eighteen”, “nineteen”];
text.sourceText = tTextString[tInteger];… then I stopped and realised it was far more complex than I had anticipated.
So my question is – are there any pre-existing scripts out there which could help me out? Is there an easy solution? I’m sure someone must have had to tackle this before. BTW I’m using 6.5.
Any help or pointers are most appreciated.
Regards, Paul.