How to Add Automatic Commas to Numbers

    0
    0

    In this tutorial, you will learn how to add automatic commas to numbers & sliders in After Effects using Expressions.

    Project File & Code: https://ukramedia.com/how-to-add-automatic-commas-to-numbers-in-after-effects/
    Expressions Course: https://ukramedia.com/expressions
    Blender Course: https://ukramedia.com/blender

    CODE:
    num = value;

    function addCommas(x) {
    return x.toString().replace(/B(?=(d{3})+(?!d))/g, “,”);
    }

    addCommas(num)

    LINKS:
    Ukramedia Website: https://ukramedia.com
    Shape Layers in After Effects Tutorial: https://www.youtube.com/watch?v=D7hE46t8Vm0
    Ukramedia Podcast: https://ukramedia.com/category/podcast/
    Ukramedia Mentoring Group: https://www.facebook.com/groups/ukramedia/
    ML3RD KIT – Bundle: https://www.ukramedia.com/ML3RD
    ML3RD KIT – Flat Style: https://ukramedia.com/product/modular-lower-third-kit-flat-style/
    ML3RD KIT – Corporate Style: https://ukramedia.com/product/modular-lower-third-kit/
    ML3RD KIT Batch Duplicator: https://www.ukramedia.com/ML3RD
    Get Adobe After Effects and CC: https://clk.tradedoubler.com/click?p(264355)a(2900636)g(22804962)url(https://creative.adobe.com/plans?sdid=KKSPF&kw=semoverview&mv=search&s_kwcid=AL!3085!10!13362180955!20541711544&ef_id=V13CaAAABYQcu4O2:20161105023903:s)
    Get Adobe CC Trial: https://clk.tradedoubler.com/click?p(264355)a(2900636)g(22804962)url(http://www.adobe.com/creativecloud/catalog/desktop.html)
    Get Adobe CC Student: https://clk.tradedoubler.com/click?p(264355)a(2900636)g(22804962)url(https://creative.adobe.com/plans?plan=edu)
    Find The Perfect Asset For Your Next Creative Project: https://clk.tradedoubler.com/click?p(264355)a(2900636)g(22804962)url(https://stock.adobe.com/?as_content=fmflp&as_channel=sem&as_campclass=brand&as_campaign=US%7CCPRO%7CStock%7CPURCH%7CAS_Brand%7CGG%7C%7C&as_source=google&as_camptype=acquisition&sdid=KQPCU&s_kwcid=AL!3085!3!147228884620!e!!g!!adobe%20stock&ef_id=V15JXwAAAV06S8xU:20161105024353:s)

    LET’S CONNECT:
    Facebook: https://www.facebook.com/ukramedia
    Sergei’s Facebook Page: https://www.facebook.com/sergeiprokhnevskiy/
    Twitter: https://twitter.com/ukramedia
    Instagram: https://www.instagram.com/ukramedia/
    Pinterest: https://www.pinterest.com/ukramedia/
    Linkedin: https://www.linkedin.com/company/ukramedia
    YouTube: https://www.youtube.com/c/ukramedia
    Mailing Address:
    P.O. Box 621
    Huntersville, NC 28070

    *** MUSIC BY: VLAD SOLOKHA. Vlad is a family friend who is a very talented musician. You can reach out to him by going to his facebook at https://www.facebook.com/vlad.solokha?fref=ts.

    #AfterEffects #Expressions #MoGraph

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here