Skip to main content
Participant
January 2, 2024
Answered

Turning a simple number counter into a .MOGRT

  • January 2, 2024
  • 3 replies
  • 830 views

Hello there, i want to turn simple number counter animation into. Mogrt file.. The problem is i don't know a way to manually adjust start point, duration control and end point slider... Please help me 

This topic has been closed for replies.
Correct answer Airweb_AE

You can use sliders and 1 expression:

 

 

start = effect("Start")(1);
end = effect("End")(1);
dur = effect("Duration")(1);
Math.floor(linear(time, 0, dur, start, end))

 

 

 

Or without sliders using text input value:

start, end, duration
0,50,10

 

start = value.split(',')[0];
end = value.split(',')[1];
dur = value.split(',')[2];
Math.floor(linear(time, 0, dur, start, end))

 

 

 

 

3 replies

Participant
January 3, 2024

It worked.. I'm very grateful i cannot thank you enough

Airweb_AECorrect answer
Legend
January 2, 2024

You can use sliders and 1 expression:

 

 

start = effect("Start")(1);
end = effect("End")(1);
dur = effect("Duration")(1);
Math.floor(linear(time, 0, dur, start, end))

 

 

 

Or without sliders using text input value:

start, end, duration
0,50,10

 

start = value.split(',')[0];
end = value.split(',')[1];
dur = value.split(',')[2];
Math.floor(linear(time, 0, dur, start, end))

 

 

 

 

Ann Bens
Community Expert
Community Expert
January 2, 2024

Moved to After Effects forum.