• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adding commas to numbers in expression counter

New Here ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

Hi

I know this question has been answered a few times already but I'm struggling to figure out what part of the expressiojn I need to add and where it needs to be added in order for me to get comma's. I've attached an image of what I have of the expression so far, can anyone help me?

Screenshot (134).png

TOPICS
Expressions

Views

81

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

Something like this perhaps:

 

mVal=thisComp.layer("XYZ").effect("Slider")("Slider");

mString=Math.round(mVal).toString();

mPre=mString.substring(1,2);

mPost=mString.substring(mString.length,-3);

 

mPre()+","+mPost

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines