Forum Replies Created

  • Mike Brassee

    August 17, 2020 at 7:35 am in reply to: Automatically center a layer

    Hi Walter,

    This worked great!
    Thanks!

  • Mike Brassee

    August 13, 2020 at 7:51 am in reply to: Automatically center a layer

    I’ve used the following code:

    rateOfSpeed=1;
    clockStartTime = thisComp.layer("Timer Duration").effect("Slider Control")("Slider")*60;

    clockTimeNumber = Math.floor(clockStartTime - rateOfSpeed*time);

    function addZero(n) {
    return (n < 10) ? "0" + n : n;
    }

    minutes = Math.floor(clockTimeNumber/60);
    seconds = clockTimeNumber%60;

    if (clockStartTime > 0 && time < clockStartTime) {
    addZero(minutes) + ":" + addZero(seconds);
    } else {
    "00:00";
    }

    The problem however, is that my font doesn’t have the same with for all the characters.
    Therefor the countdown goes off center when counting down.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy