-
Triggering An Expression “on off on off etc’ via Markers
Could someone guide me with my current expression. I basically have an expression that begins the pulse of the Opacity when it hits the Marker. I really need to create an “On Off, On Off etc” with each Marker I lay in?
Thanks!
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
}if (n == 0){
value;
}else{f = 3; // frequency
a = 100; // amount
(Math.cos(time * f * 2 * Math.PI) + 1) * (a / 2);
}