-
Combining 2 Expressions
Hi,
im trying to combine those 2 Expressions…
can anybody help me out? 🙂
+ add a option for Decimals?
1st Expression for changing the font of the Text-Layer:
var fontArray=[
“BerninaSansOffc-Regular”,
“DTFlowTextV1.011-Regular”
]
v=Math.round(thisComp.layer(“Null 19”).effect(“Font CTRL”)(“Slider”))
style.setFont(fontArray[v]);
2nd Expression is a Counter with a Point Control because i need numbers greater then 1million:
num = Math.round(effect(“Point Control”)(“Point”)[0]);
function addCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,”,”);
}
addCommas(num)