Number expression with decimals
Need a help with an expression…
I found an expression useful for my effects were a number increase until it reach the value designed in last keyframe.
Now, my problem is that i see that dont allow to choose decimals.
What part of the expression have to change for obtaining two decimals.?
Another that i have is how to hide layers with a slider.
For example, i have 10 layers and i need only to show 5, How to do with a slider?
Thanks in advanced people, im very new to expressions.
num = parseFloat(Math.round(thisComp.layer("Number_Control").effect("Number_1")("ADBE Slider Control-0001")));
str = isNaN(num) ? "" :(num + "");
str.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ');