Numbers counting up with commas, decimals [ULTIMATE GUIDE] - After Effects 2020 Update

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2021
  • A comprehensive look at how to create numbers counting up in After Effects and create a preset for it so you never have to make it again.
    In this lesson we also animate it with commas, decimal points and percentages as well as any other prefix you want to add.
    For numbers with commas
    s = "" + Math.round(effect(1)(1)[0]);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    For decimal points to 2 places
    s = "" + (effect(1)(1)[0]).toFixed(2);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    - This will only work if the point controller (or your language equivalent) is the first effect in the effects stack.
    Want to help out the channel?
    Get The "Lyric Video Creator Kit" Here: www.lyricvideocreatorkit.com/
    What's Included
    ✅ 60 Animated Presets
    ✅ Bonus Thicc Marker + 4k Neon pack
    ✅ Premiere Ready
    ✅ Full Tutorial
    No After Effects Skills Required
    Get it here!: www.lyricvideocreatorkit.com/

ความคิดเห็น • 260

  • @duncshinn
    @duncshinn 2 ปีที่แล้ว +6

    Amazing. I found tutorials for adding prefixes, suffixes, commas, and decimals, but none that let you do it all at the same time like this. Thanks so much, bro!

  • @rccwagan
    @rccwagan ปีที่แล้ว

    You just gained yourself a new subscriber. Thanks for this video, I've been using the slider control for a long time, didn't know there's an easy way to to this.

  • @mhmedia_wetellyourstories
    @mhmedia_wetellyourstories ปีที่แล้ว

    OMG I've been struggling to find a solution for this, YOU HAVE SAVED MY PROJECT! THANK YOU SO MUCH!!!

  • @NickKhoo
    @NickKhoo  3 ปีที่แล้ว +23

    Make sure to have the point controller as the first effect in your effects stack before pasting the code otherwise it won’t work!
    For numbers with commas
    s = "" + Math.round(effect(1)(1)[0]);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    For decimal points to 2 places
    s = "" + (effect(1)(1)[0]).toFixed(2);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

    • @sannevangemert1536
      @sannevangemert1536 3 ปีที่แล้ว +5

      I get a Error with the second code. I don't know why.

    • @OnlyHooligan
      @OnlyHooligan 3 ปีที่แล้ว +3

      Thanks for the tutorial!
      This worked for me with 2 point decimal precision without an error :)
      s = "" + effect("Point Control")("Point")[0].toFixed(2);
      s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว +2

      @@OnlyHooligan Yeah I realised right after I uploaded the tute that I could have put the whole thing into 1 formula! Glad you figured it out

    • @pravinmishra8080
      @pravinmishra8080 2 ปีที่แล้ว

      Thank You so much......

    • @Tyler-ko8dp
      @Tyler-ko8dp 2 ปีที่แล้ว

      I've got a single decimal point, but nothing moves up after the decimal point ...if that makes sense. It just goes 9.0, 10.0, 11.0, 12.0 and so on....I'm trying to get it to go 1.1, 1.2, 1.3 etc.

  • @jamesparkes
    @jamesparkes 2 ปีที่แล้ว

    Amazing tutorial!! Thank you for making it so easy.

  • @AlexanderGregoriou
    @AlexanderGregoriou ปีที่แล้ว

    Mate thank you! So much value in this video much appreciated 🙏🏼

  • @windmarkcastle7305
    @windmarkcastle7305 2 ปีที่แล้ว

    Thanks a lot nick, now I can finish the project because of you! many thanks!

  • @serena_collins
    @serena_collins 3 ปีที่แล้ว

    Yay! 🙌🏾 Success! After watching about 5 tutorials this one has helped me get that counting effect with the dollar sign!! Thank you so much!!

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว

      Ah nice. Glad I could help!

    • @bsways
      @bsways 2 ปีที่แล้ว

      So how do you put a $ sign? Coz this video doesn’t explain that

  • @marcidukes15
    @marcidukes15 2 ปีที่แล้ว

    finally someone who explains it properly! thank you!

  • @aaronlukewilson
    @aaronlukewilson 2 ปีที่แล้ว

    This is exactly what I needed. Thanks so much!

  • @nomnompress
    @nomnompress 2 ปีที่แล้ว

    Worked like magic. Thanks Nick!

  • @rayg.m.7846
    @rayg.m.7846 ปีที่แล้ว +1

    it's 2023 and I cannot thank you enough! the slider was giving me headaches. Point Control makes so much more sense. Thank you from a new sub!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Oh amazing. Glad I could help 🙏

  • @maxmatassov5273
    @maxmatassov5273 2 ปีที่แล้ว +1

    For the german people:
    Da der Code auf Englisch ist, solltet ihr den Begriff "Point Control" neu zuordnen. Generell lautet der Effekt auf Deutsch "Einstellung für Punkte".
    1. Ihr macht alle Steps nach, wie es in dem Tutorial gezeigt wurde
    2. Sobald ihr den Code in den Source Text Bereich eingefügt habt, nutzt ihr das Lasso-Tool (das Symbol, welches neben dem Quelltext zu finden ist) und verbindet es zum "Effekt -> Einstellungen für Punkte -> Punkt"
    Thanks for the great tutorial, Nick!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว +1

      Love it. Thanks so much for translating

  • @justadrum
    @justadrum 2 ปีที่แล้ว

    Thank you! Just needed the counter above 1 milly...worked perfectly. Thank you!

  • @mickey1574
    @mickey1574 3 ปีที่แล้ว

    You legend, this worked so much better than the slider! Thank you!

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว

      Glad it helped!

  • @juanjosearreola1640
    @juanjosearreola1640 ปีที่แล้ว

    El mejor tutorial que haya visto, muy bien explicado, gracias por compartir tu conocimiento

  • @digidianne3302
    @digidianne3302 2 ปีที่แล้ว

    You are absolute legend! I am your new subs

  • @rachinc
    @rachinc ปีที่แล้ว

    THANK YOU!!!! AMAZING. REALLY APPRECIATE YOU POSTING THIS VIDEO. SO HELPFUL WHEN OTHER VIDEOS DONT COVER THE SLIDER CONTROL CAPPING AT 1 MILLION.

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You're welcome!

  • @ultimetal
    @ultimetal 2 ปีที่แล้ว

    Fantastic work. HUGE help. Much appreciated. Apparently, I like two word sentences.

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      Ha! You win comment of the day

  • @AG_Places
    @AG_Places 2 ปีที่แล้ว

    Eres un genio... muchas gracias... estuve atorado con esto hasta encontrar este tutorial.

  • @juleslynn476
    @juleslynn476 2 ปีที่แล้ว

    Thank you thank you for posting this! You're a life saver!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      You’re very welcome

  • @marianomontiel
    @marianomontiel 3 ปีที่แล้ว

    EXCELENT info and video! It deserves more views! I'd suggest you do some keyword optimization. I was quite lucky to find your video but many people might not be able to do so!

  • @wiehl442
    @wiehl442 2 ปีที่แล้ว

    Brilliant! Thank you. I would love to know how to effect the ("") or +"". Such as how to change colour or font size. Are there any code resources you could link or could you give us an example of code that would effect the these parameters.

  • @illustrated12
    @illustrated12 2 ปีที่แล้ว

    Great information! Thank you.

  • @mukeshtp4951
    @mukeshtp4951 ปีที่แล้ว

    You are amazing. Thank you for sharing good stuff.

  • @user-do9sc8cb6w
    @user-do9sc8cb6w 3 ปีที่แล้ว

    thank you so much for your tutorial!

  • @CharlizeMatthee
    @CharlizeMatthee 3 ปีที่แล้ว

    You are a genius. Thank you.:)

  • @anais703
    @anais703 ปีที่แล้ว

    Amazing tutorial!! Thank you very much

  • @yenhuiho9051
    @yenhuiho9051 ปีที่แล้ว +1

    thanks! easier than other tutorials ! amazing !

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Thank you 🙏

  • @kamaur01
    @kamaur01 2 ปีที่แล้ว

    Nicely done. I always forget how to add the commas+. A good combo with this is the plugin Monospace to lower the bouncing back and forth.

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      oooh I need to try that!

    • @kamaur01
      @kamaur01 2 ปีที่แล้ว

      @@NickKhoo I had to do this again and forgot to save it. This one I'm posting has the option for a prefix and a suffix along with decimal values.
      num = "$" + effect("counter")("Slider").value.toFixed(2) + "£";
      function addCommas(x) {
      return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
      }
      addCommas(num)
      I made the $ the prefix and the £ the suffix. On the same line, the (2) is the number of decimal spaces. All you need to do is add an expression slider on the text and call it counter. Hope this helps you

  • @shannonsx4143
    @shannonsx4143 2 ปีที่แล้ว

    Love it - thanx !

  • @CVI_JAKARTARAYA
    @CVI_JAKARTARAYA ปีที่แล้ว

    this is going to be great!

  • @justicegoble3463
    @justicegoble3463 ปีที่แล้ว

    just ran into the same problem of running into the limit of 1 Million, just happened to find yours so I'm stoked! Thanks for the help!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Glad it helped!

  • @nickkeze5831
    @nickkeze5831 2 ปีที่แล้ว

    amazing!! thanks bro! 😁

  • @maxportfolio1468
    @maxportfolio1468 ปีที่แล้ว

    Awesome. this really helped : )

  • @eleartcraft
    @eleartcraft 2 ปีที่แล้ว

    AMAZING!

  • @MrTextus
    @MrTextus 2 หลายเดือนก่อน

    So helpful! You're the man, thank you!!

  • @Timer_Hare
    @Timer_Hare ปีที่แล้ว

    Marvelous! Absolutely helpful!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re welcome!

  • @user-mh8rj8rf2b
    @user-mh8rj8rf2b 2 ปีที่แล้ว

    Great! Thx a lot, mate!

  • @ManoelFlesch
    @ManoelFlesch ปีที่แล้ว

    Saved me a lot of time, thank you! :)

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re very welcome

  • @dianamendoza569
    @dianamendoza569 2 ปีที่แล้ว

    Thank you! you're my hero!

  • @CGStirk
    @CGStirk 3 ปีที่แล้ว +5

    Sweet. I never thought about using a point control to get around the slider limitation! Also, some coding trivia:
    If you really wanted to have more than two decimals, you can use the following regex:
    s.replace(/\d(?=(\d{3})+\.)/g, '$&,')
    And if you needed commas for decimals, then you can set the locale like this:
    $.locale = "ru" // Russia for example
    Number(s).toLocaleString().replace(/\d(?=(\d{3})+\,)/g, '$&.')

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว +1

      This is why I love you guys :)

    • @rosaliecgarcia
      @rosaliecgarcia 3 ปีที่แล้ว

      How to animate if the number that I want to achieve is something like this: 0.134641354163578?

  • @muhammedhafzoglu5996
    @muhammedhafzoglu5996 2 ปีที่แล้ว

    thanks man! you saved my life!

  • @user-wl2er4qt4x
    @user-wl2er4qt4x ปีที่แล้ว

    this is the perfect video
    thank you x 1000

  • @vexvibez-3251
    @vexvibez-3251 2 ปีที่แล้ว

    Dziękuję!❤️

  • @vishal1061972
    @vishal1061972 ปีที่แล้ว

    Thanks for the tutorial. Cheers

  • @tannerbrowningfilms
    @tannerbrowningfilms 3 หลายเดือนก่อน

    Having that cheat script posted has saved me more times than once... If only I could like this video as many times I've used it.

  • @haz96ai
    @haz96ai 9 หลายเดือนก่อน

    Thank you so much... this is the best tutorial video 🤩

  • @lobsterboy64
    @lobsterboy64 ปีที่แล้ว

    Video was great. Thank you so much

  • @KhalilCh
    @KhalilCh 10 หลายเดือนก่อน

    Great and thank you, I have a question: what if I want to change the font size of the Word after or before like (%) or ($)

  • @jawlineseeker
    @jawlineseeker 3 ปีที่แล้ว

    thank youuuu it such a big help

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      You’re very welcome!

  • @wowsweardown
    @wowsweardown 2 ปีที่แล้ว

    legend! thank you

  • @DCS190589
    @DCS190589 9 หลายเดือนก่อน

    thank you!! great video!!

  • @SilentRONIN26
    @SilentRONIN26 ปีที่แล้ว

    Thanks. This vid was exactly what i needed.

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว +1

      You’re very welcome 🔥

  • @KiaKittyCat
    @KiaKittyCat 2 ปีที่แล้ว +4

    Great video! Is there a way to make the "$" text smaller than the rest of the text?

    • @kaguongojames1458
      @kaguongojames1458 6 หลายเดือนก่อน

      Did you find a way to make "$" smaller?

    • @KiaKittyCat
      @KiaKittyCat 6 หลายเดือนก่อน

      @@kaguongojames1458 unfortunately no 😢

  • @dahunsivictor7031
    @dahunsivictor7031 ปีที่แล้ว

    thank you for the insight

  • @rossbuchanan1060
    @rossbuchanan1060 2 ปีที่แล้ว

    brilliant - thank you

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      You’re very welcome!

  • @jessebout3093
    @jessebout3093 3 ปีที่แล้ว

    Great tutorial thanks! How would you go about adding a percentage symbol to this?

  • @arginsky
    @arginsky ปีที่แล้ว

    Perfect! Thanks so much!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re welcome!

  • @roll3y
    @roll3y 2 ปีที่แล้ว

    Dude you are a legend!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว +1

      Aww thanks 🙏

  • @GDoggProductions
    @GDoggProductions 2 ปีที่แล้ว

    Thank you for this tutorial! just what I was looking for!
    is there a way to make this into a MOGART so I can quickly edit values on Premiere pro ?

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว +1

      Sadly I havent solved that yet...

  • @jeromecunanan2938
    @jeromecunanan2938 3 ปีที่แล้ว

    You save my life haha thanks bro!

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว

      Ha I dunno about that but you’re welcome :)

  • @Khang501
    @Khang501 2 ปีที่แล้ว

    How would you go about with something from 5’6” to 6’11” or from 5’6” to 4’2”? I’m having problems with how to properly add the curly quotations in the number expression.

    • @al99795
      @al99795 ปีที่แล้ว

      For something like this i might adjust the keyframes of the position of the numbers and quotations to keep distancing equal and then pre-compose

  • @JohnVincentLabatastory
    @JohnVincentLabatastory 2 ปีที่แล้ว

    This is very helpful!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      You’re very welcome!

  • @protsiuk.vladyslav
    @protsiuk.vladyslav ปีที่แล้ว

    Thank you so much

  • @ahmadshukri3405
    @ahmadshukri3405 2 ปีที่แล้ว

    THANK YOUUUU!!!!

  • @madeintheeastke2276
    @madeintheeastke2276 2 ปีที่แล้ว

    Bro thanks so muuuch for this

  • @bobanzikic1993
    @bobanzikic1993 3 ปีที่แล้ว

    Thank you!!!!!!

  • @juyoon0607
    @juyoon0607 2 ปีที่แล้ว

    u da best!!!!! thx!

  • @tihanypuerta756
    @tihanypuerta756 ปีที่แล้ว

    thank you man,you are a legend

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Happy to help!

  • @iandvan8698
    @iandvan8698 2 ปีที่แล้ว

    OMG THANKS!

  • @henrynorgrove2034
    @henrynorgrove2034 3 ปีที่แล้ว

    Thanks so much!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      You’re welcome!

  • @Denis-ie6uw
    @Denis-ie6uw ปีที่แล้ว

    thank u for this guide. very useful 👍

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re welcome!

  • @robartillustration
    @robartillustration 9 หลายเดือนก่อน +1

    Hi Nick
    Not sure if I missed something in the video, but is there a way to make the decimal point in-between some text instead. My example would be I would like to show hours and minutes, So the full visual would be 34hrs40mins. We can add the mins to the end, but is there a way to get that hrs in the expression?
    Thanks in advance

    • @NickKhoo
      @NickKhoo  6 หลายเดือนก่อน +1

      This would require some re-coding. Standby

  • @user-kn6ib7lb3u
    @user-kn6ib7lb3u 2 ปีที่แล้ว

    Thanks a lot!

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      Glad I could help!

  • @akashgoswami52
    @akashgoswami52 2 ปีที่แล้ว

    thank you

  • @pcholtz
    @pcholtz 3 ปีที่แล้ว

    mvp!

  • @nogueirabrn
    @nogueirabrn หลายเดือนก่อน

    great tutorial, thank you!

    • @NickKhoo
      @NickKhoo  26 วันที่ผ่านมา

      You’re welcome!

  • @RahulKashyap-zd8ho
    @RahulKashyap-zd8ho 3 ปีที่แล้ว

    Thanks a lot

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว

      You’re very welcome :)

  • @jenniferbuat
    @jenniferbuat 9 หลายเดือนก่อน

    This is absolutely amazing! Thank you! Would you know how to offset the numbers like a slot machine? If there is a way to do this that would be perfect!! Thanks!

    • @NickKhoo
      @NickKhoo  9 หลายเดือนก่อน

      Thank you! Can you link me an example of what you mean?

  • @stickapot3623
    @stickapot3623 2 ปีที่แล้ว

    THANK U

  • @Sampltxt
    @Sampltxt 2 ปีที่แล้ว

    youre a god WOOOOOOOOOOOOO

  • @racheltavares4806
    @racheltavares4806 ปีที่แล้ว

    Thank you so much for sharing, it helped me a lot! And if I wanted to count between certain values, for example between 0 and 59, like a clock, how can I change its expression? Once more, thank you!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Sadly I barely understand what the code actually does so unfortunately I have no idea to fix it for you

    • @racheltavares4806
      @racheltavares4806 ปีที่แล้ว

      @@NickKhoo lol

  • @narendra643
    @narendra643 ปีที่แล้ว

    thank you brother!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re very welcome !

  • @sergyxyz
    @sergyxyz ปีที่แล้ว

    Thanks FOREVER!

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      Ha you’re very welcome

  • @kpopRC
    @kpopRC 2 ปีที่แล้ว

    anyone else have issues with it not counting the first 3 digits of 100 000?

  • @whatughbeast495
    @whatughbeast495 3 ปีที่แล้ว

    Is there a way to add this to an animated pie chart most have the decimal number but with the slider/ 1million cap I would prefer it with the commas and almost no cap

    • @NickKhoo
      @NickKhoo  3 ปีที่แล้ว

      That will take a little more formulas but yes that is possible.

  • @jamesnnabeze687
    @jamesnnabeze687 ปีที่แล้ว

    Bless you soul brother

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      I receive that blessing 🙏

  • @ceciliamatteoni2138
    @ceciliamatteoni2138 ปีที่แล้ว

    This seems to be a very good tutorial! I get stuck though really early as I don't know how to "go to the comment section". How do you do that? Have been searching for a very long time now :)

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      If you're on a desktop computer it should be the first comment at the bottom of the video. But in case you can't find it
      For numbers with commas
      s = "" + Math.round(effect("Point Control")("Point")[0]);
      s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
      For decimal points to 2 places
      s = "" + (effect("Point Control")("Point”)[0]).toFixed(2);
      s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

  • @thanramirez
    @thanramirez 2 ปีที่แล้ว

    Hello how to put spaces between numbers example 3 300 000

  • @tiagos5804
    @tiagos5804 7 หลายเดือนก่อน

    life saver, tyvm :D

    • @NickKhoo
      @NickKhoo  6 หลายเดือนก่อน

      Glad to help!

  • @user-eg8zh8tv2j
    @user-eg8zh8tv2j 2 ปีที่แล้ว

    is there any app to do it on phone?

  • @elliot_347
    @elliot_347 ปีที่แล้ว

    thank u i love you

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      You’re very welcome

  • @tirraa
    @tirraa ปีที่แล้ว

    What does the ""S equal"" stands for? I'm diving into expressions and sometimes I see people using showtext instead of S equal;

    • @tirraa
      @tirraa ปีที่แล้ว

      Now I see... It's a variable. What a dumb question of mine.

    • @NickKhoo
      @NickKhoo  ปีที่แล้ว

      All good. I didn’t really explain anything very well so good on you for figuring it out

  • @colinjcjohnston
    @colinjcjohnston 11 หลายเดือนก่อน

    I swear I've triple checked this code when adding a percentage.. and it aint working for me, I've used this previously and worked very well, any ideas?

  • @MegaUrzo
    @MegaUrzo 2 ปีที่แล้ว +1

    Hi NIck, I am trying to animate a temperature number eg 28.6oC. How do it superscript the (o)C?

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว +1

      s = "" + Math.round(effect("Point Control")("Point")[0]) + "°C";
      s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");

    • @MegaUrzo
      @MegaUrzo 2 ปีที่แล้ว

      @@NickKhoo You are a life saver!

  • @beelingchuah2685
    @beelingchuah2685 2 ปีที่แล้ว

    This code doesn't work for me.
    For decimal points to 2 places
    s = "" + (effect("Point Control")("Point”)[0]).toFixed(2);
    s.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    Seems like the point control is not linked to the text eventhough I added Point Control effect before pasting the code.

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      What error do you get? And you pasted on the source text?

  • @howardroark9527
    @howardroark9527 10 หลายเดือนก่อน

    what's the code for enter or to insert text right below ?

  • @Vijoodruid
    @Vijoodruid 2 ปีที่แล้ว

    Thanks a lot, you saved me a lot of time, i used to copy paste text next to the numbers and it was a nightmare. For some reasons, my text got pixelated once i applied the expression, has anyone else faced this problem? I tried changing the font, but it didnt help.

    • @NickKhoo
      @NickKhoo  2 ปีที่แล้ว

      That’s super weird. Never heard of that issue.

  • @marksuzuki-tsuji8200
    @marksuzuki-tsuji8200 3 ปีที่แล้ว +18

    In case someone has the same problem I was having: I needed a count from 0,00 to 0,89, with commas and 2 decimal places. I was only able to make it work with this:
    s = "" + effect("Point Control")("Point")[0].toFixed(2);
    s.replace(/\./g, ",");

    • @Skillfile
      @Skillfile 2 ปีที่แล้ว +1

      That is what ive been looking for hours! Thank you verry mutch

    • @sofiaenault6373
      @sofiaenault6373 2 ปีที่แล้ว

      still doesn't work for me :(
      it says: "Error at line 1 in property of layer 19 (NAME) in comp 'RECAP 2021'. couldn't turn result into numeric value

    • @marksuzuki-tsuji7845
      @marksuzuki-tsuji7845 2 ปีที่แล้ว

      @@sofiaenault6373 Paste your code here

    • @vmartme
      @vmartme 2 ปีที่แล้ว +1

      @@marksuzuki-tsuji7845 Awesome even cleaner code well done mate!
      Thank you so much :)

    • @FernandaFerreira-hv6yu
      @FernandaFerreira-hv6yu 2 ปีที่แล้ว +1

      Thank you so much!!