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

34

Likes

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
Adobe Community Professional ,
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

Likes

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
Adobe Community Professional ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

LATEST

Likes

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