Skip to main content
Participant
Jan 2, 2024 6:39 PM UTC
Answered

Turning a simple number counter into a .MOGRT

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 is closed to new replies. Start a new post to keep the conversation going.
Airweb_AECorrect answer
Legend
Jan 2, 2024 8:23 PM UTC

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
Jan 3, 2024 7:43 AM UTC

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

Translate
Airweb_AECorrect answer
Legend
Jan 2, 2024 8:23 PM UTC

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))

 

 

 

 

Translate
Ann Bens
Community Expert
Community Expert
Jan 2, 2024 8:10 PM UTC

Moved to After Effects forum.

Translate