Sure, you would use a slider to create the numbers then input them into a text field using:
Math.round(Math.abs(thisComp.layer("Controls").effect("Slider Control")("Slider")))
Round just rounds the slider number and Math.abs uses just absolute value of the number, ignoring whether it’s postive or negative.
For the AD/BC, you connect to the same slider and use an If/Else statement.
var date = ["AD","BC"]
myInput = thisComp.layer("Controls").effect("Slider Control")("Slider");
if (myInput > 0) date[0] else date[1]
Here’s a simple project with it all worked out: 8822_datecountdown.aep.zip
Johnny Cuevas, Editor
Thinkck.com
“I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
—THOMAS EDISON on inventing the light bulb.