-
Expression count up values in specific time
Hello everyone. I’m trying this expression. But the problem is when i key Slider from 50->51->52. The value in source text change in a single frame. Is it possible to make the value count up in 1 second instead of 1 frame?
x=Math.round(comp("MainComp").layer("Value Control").effect("Value 1")("Slider"));
if(x==50) footage("Values.csv").dataValue([2,0]) else
if(x==51) footage("Values.csv").dataValue([2,1]) else
if(x==52) footage("Values.csv").dataValue([2,2]) else
if(x==53) footage("Values.csv").dataValue([2,3]) else
if(x==54) footage("Values.csv").dataValue([2,4]) else
if(x==55) footage("Values.csv").dataValue([2,5]) else
value
TIA ☺