Forum Replies Created

  • Hey guys, I’ve tried the above expressions (with great success) but now I’m trying to add a dollar sign prefix to the front of the numbers driven by this expression, and which is not adding anything.

    I think I’m close to understanding the moving parts of this (I’m trying to bring myself up to speed on expressions) but I can’t for the life of me figure where this (prefix/ “$”+ ) rule would go/which piece of the above expression it would act on… any help would be appreciated!

    prefix = "$";
    tStart = .4;
    startCount = 0;
    endCount = parseFloat(thisComp.layer("End Count").text.sourceText);
    if (isNaN(endCount)) endCount = "0";

    countDur = parseFloat(thisComp.layer("Max Duration").text.sourceText);
    if (isNaN(countDur)) countDur = "0";

    t = Math.max(time-tStart,0);
    Math.round(linear(t,0,countDur,startCount,endCount))

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