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

Countdown circle: "Numbers" connected with Text/path: anoying decimals

Cow Forums : Adobe After Effects Expressions
Countdown circle: "Numbers" connected with Text/path: anoying decimals
by tom_berlin on May 10, 2007 at 8:48:03 am

I want to make a circulating countdown beginning some trillion years ago till today. I have connected the texttool: "numbers" values with an expression to text with a round path shape.
So far all is fine. Now the problem sets in: text takes the numbers from number tool, but allthough I set fixed 2 decimals it jumps in text between 0 and 3 decimals and becomes very anoying. Does anyone know a solution to my problem?



Respond to this post     Return to posts index

Re: Countdown circle: "Numbers" connected with Text/path: anoying decimals
by Filip Vandueren on May 10, 2007 at 2:16:34 pm

Here's probably your answer:

http://forums.creativecow.net/cgi-bin/new_read_thread.cgi?forumid=227&postid=7532&univpostid=7531



Respond to this post     Return to posts index

Re: Countdown circle: "Numbers" connected with Text/path: anoying decimals
by Lord Scales on May 11, 2007 at 6:23:54 pm

I could not get waht you want to do really, but try this in Source Text:

D = Math.exp (time);
mult = 1; //multiplier of D
years = 8000000000000;
Math.round(years/D*mult)

It will start at 8000000000000 and it will decrease fastly. If it is not what you want just tell us here. Hope to have helped!

Lord Scales

Respond to this post     Return to posts index


CORRECTION > Re: Countdown circle: "Numbers" connected with Text/path: anoying decimals
by Lord Scales on May 11, 2007 at 6:49:29 pm

Sorry, I forgot the parentheses in 4th line.

D = Math.exp (time);
mult = 1; //multiplier of D
years = 8000000000000;
Math.round(years/(D*mult))

I created another one also (the "transformation" will be faster in the middle and slower in the end):

D = Math.exp (time);
mult = easeIn (time, 5, 10, 1, 400000000); //multiplier of D, will change between 1-400000000 in an Ease In interpolation
as time changes from 5-10
years = 8000000000000;
Math.floor(years/(D*mult))

Lord Scales

Respond to this post     Return to posts index

Re: CORRECTION > Re: Countdown circle: "Numbers" connected with Text/path: anoying decimals
by tom_berlin on May 12, 2007 at 9:50:55 am

Thanx for the help.. got it done. Tom



Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]