|
 | expression to show comments and duration between markers :)
by Chifei Soong on May 25, 2012 at 9:22:15 am |
source text expression:
small expression to display duration between markers in layer.
(modified from Dan's marker expression)
------------------------
need help:
now the expressions gets the time from nearest markerKey, need to make the expression hold until the next marker, so that the value wont change half-way between 2 markers
Thanks :D
p=thisLayer; //layer where the markers is
if (p.marker.numKeys > 0) try{
n = p.marker.nearestKey(time).index;
m = p.marker.key(n).time; m2=p.marker.key(n+1).time;
c=p.marker.key(n).comment;
v=m2-m;
}
catch(err){ c=p.marker.key(n).comment; m=0; m2=p.marker.key(n).time; m3=thisComp.duration; v=m3-m2;}
c+"r"+timeToTimecode(v)
| |