Pause / Strat by a marker
The expression allows you to pause for footage or composition using markers. Each first marker stops the playing for the footage, every second marker starts the playback. That is, there will be a pause between the two markers. Used for the Time Remap option.
n = 0; if (thisLayer.marker.numKeys > 0){ n = thisLayer.marker.nearestKey(time).index; if (thisLayer.marker.key(n).time > time){ n--; } } if (n > 0){ if (n%2){ t = 0; }else{ t = time - thisLayer.marker.key(n).time; n--; } while (n > 0){ t1 = thisLayer.marker.key(n).time; t0 = (n > 1) ? thisLayer.marker.key(n-1).time : 0; t += t1 - t0; n -= 2; } }else{ t = time; } t
Recommended Posts