ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Why doesn't the AE Numbers plug-in have commas???

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Declan Smith
Re: Why doesn't the AE Numbers plug-in have commas???
on May 11, 2016 at 5:55:37 pm

Wow, this thread really does live on. Ok, if you want to do as you are saying, then try this. Basically, replace the "." with "," then add the separator as a "."


num = "$" + (effect("Point Control")("Point")[0].toFixed(2)).replace(".", ",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.");


Hope this is what you're after.

Declan Smith
http://www.madpanic.tv
After Effects CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

"it's either binary or it's not"


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]