-
alpha in/out on markers with option to flicker
Hi!
I am working with an alpha in/out when reaching the markers called “in” and “out” . It works good, but I’d need to add an extra option with a checkbox to add a flicker only when the fade in and out is there. I did a close try, but when I add the flickering option, it never stops, so I was wondering if you could give me a clue?
This is the expression on the alpha I’m using (without the flickering option)
durIn =effect("duracionIn")("Slider")
durOut = effect("duracionOut")("Slider")
di=framesToTime(durIn)
do=framesToTime(durOut)
if (marker.numKeys > 1){
t1 = marker.key("in").time;
t2 = marker.key("out").time;
if (time < (t1+t2)/2)
ease(time,t1,t1+di,0,100)
else
ease(time,t2+do,t2,100,0);
}else
valueI think it’s pretty easy, but not achieving it to work at 100%!
Thanks!