-
Sum Marker Values
I’m using the expression below on the Source Text stopwatch of a text layer display the marker text:
try{timeout = effect("Timeout (secs)")(1) + thisComp.frameDuration; alignBottom = effect("Align Bottom")("Checkbox");
nextTime = marker.nearestKey(time).time;
if(time>=nextTime) indx = marker.nearestKey(nextTime).index else indx = marker.nearestKey(nextTime).index -1;
if(indx>0) if(time < marker.key(indx).time+timeout) subtitle = marker.key(indx).comment else subtitle = "" else subtitle=""; if(alignBottom==true){if(subtitle.indexOf(String.fromCharCode(13))==-1) subtitle = String.fromCharCode(13) + subtitle;}} catch (e) { subtitle="Create markers with comments" }I will be using numbers as my marker text and want the text layer to display a cumulative sum of the value. If this can't be done only on the Source Text stopwatch of text layer, would it be possible to also use a Slider to assist with the counting process?
Thanks so much for your help. BTW, am I the only one that thinks Dan Ebberts needs a PayPal Donate button?