-
Help tweaking an expression
Here is the expression that I am using…
amtOfDigits = 2;
seconds = Math.round( time % 60 );
minutes = Math.floor( time / 60 );
function addLeadingZeroes( v ){
for( i = 0; i < Math.abs( amtOfDigits - (v + "").length ); i++) v = "0" + v; return v; } addLeadingZeroes(minutes) + ":" + addLeadingZeroes(seconds) My only problem is that when I get to the 1:00 minute mark in the timeline the seconds count to :60 for a half second before switching over to 1:00. Obviously , I want the seconds to count from :59 to 1:00 directly. My comp setting is an HD 30fps set-up right now. Please help.