Created
April 26, 2023 09:54
-
-
Save marco-van-zomeren/5782687167d9197cb4464b947232eb88 to your computer and use it in GitHub Desktop.
After Effects - Slider control number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = effect("Slider Control")("Slider").value.toFixed(0); | |
function addCommas(x) { | |
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); | |
} | |
addCommas(num); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment