Creative COW SIGN IN & SETTINGS :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Numbers to text...

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Numbers to text...
by Paul Maguire on May 8, 2008 at 3:06:44 pm

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.


Return to Posts Index   •   Read Entire Thread   •   Reply To This Post


Current Message Thread:


Related Threads:
Numbers & Text   |   Text linked to scale property - Scaling by whole numbers   |   Countdown circle: "Numbers" connected with Text/path: anoying decimals   |   text>numbers>date in CAPITALS?   |   Numbers or text expression with a ,   |   increasing numbers in text



Note: If you are a registered user and you do not see your name and email in the two respective fields above, you may reset your account cookies by clicking here. Your post will not be accepted if the name and email provided above are not currently registered in our database.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  


Message                Add Bold Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Italic Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Underline Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Image Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd URL Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this button

Note: The following characters are HTML command characters, and may cause parts of your post to disappear, if not used correctly: < > &. To include any portion of the post in your response, highlight the desired text and hit the "Q" key. For more on how to post, click here.


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSLIBRARYPODCASTSBLOGSMAGAZINESERVICESNEWSLETTERSNEWSSTOREEVENTS

© CreativeCOW.net All rights are reserved.

[Top]