Skip to main content
gifted_video6C29
Participant
March 16, 2019
Answered

Delay start time

  • March 16, 2019
  • 1 reply
  • 3044 views

Hi guys, I did number counting on the video lesson, but it starts counting from the very beginning of my animation - 00:00. I want the change of numbers to start at 00:05 (seconds). Can you help me do this? thank

My expression -

slider = effect ("Slider Control" Slider "") ("Slider");

sec = slider% 60;

min = Math.floor (slider / 60);

function addZero (n) {

if (n <10) return "0" + n else return n;

}

if (slider> 0) {

addZero (min) + ":" + addZero (sec)

} else {

"00:00"

}

This topic has been closed for replies.
Correct answer Mathias Moehl

You can change your keyframes on the slider - to start at 5 instead of 0.

Alternatively, you could replace the first line of your expression by

slider = effect ("Slider Control" Slider "") ("Slider") + 5;

which adds 5 seconds to the slider value.

Also note that my Counter iExpressions offer a very flexible and powerful solution to create counters if you need more flexibility:

Counter Time Expression | mamoworld

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
March 16, 2019

You can change your keyframes on the slider - to start at 5 instead of 0.

Alternatively, you could replace the first line of your expression by

slider = effect ("Slider Control" Slider "") ("Slider") + 5;

which adds 5 seconds to the slider value.

Also note that my Counter iExpressions offer a very flexible and powerful solution to create counters if you need more flexibility:

Counter Time Expression | mamoworld

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
gifted_video6C29
Participant
March 16, 2019

Amazing! Thanks, Mathias

That's work, and I will download your plugin. Thank's again!