-
Flicker opacity expression issue
I have an expression to flicker a layer’s opacity triggered by a marker, written with the help of Dan, and I noticed that it has different results depending on the version of AE. In CS5, this expression works as intended. When it hits a marker, it flickers for 10 frames then stops
In CS5.5, it does one really quick flicker, then it doesn’t do anything for almost 4.5 seconds, then starts freaking out (see attached screenshot). Any know if something used in this expression has been subtly changed from CS5 to 5.5?
//Flickers the parameter applied to it for x# of frames triggered by a layer markerduration = 10; //# of frames
n = 0;if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
}if (n == 0){
value;
} else {
if (timeToFrames(time) < (timeToFrames(marker.key(n).time)+duration)){
freq = 50; // 10 = 1 cycle per second
60*(1 - Math.cos(freq*time*Math.PI*2))
}else{
value;
}
}
