Hey Dan,
Thanks for sharing your work, really helpful for people like myself ????
I am working on an expression and cannot get it to work properly, please could you help? I am trying to make an expression that is on a contrast parameter, the expression should flash the contrast to 100 periodically with a delay offset for each layer that I apply the expression to. Imagine the flashing leading lights on a runway…
I had to use thisLayer.name because I’m working in 3d and index is the wrong way round for how I have positioned my layers in space. Currently this expression makes the flash on the first intended instance but doesn’t repeat.
Cheers!
beginFrame = (framesToTime(thisComp.layer("Controls").effect("Flash Delay")("Slider"), fps=.04/thisComp.frameDuration)*(Math.round(thisLayer.name)-1))+ thisComp.layer("Controls").effect("Flash Start")("Slider"); // start frame
t = time - framesToTime(beginFrame);
if (t >= 0) {
f = time - beginTime;
frequency=thisComp.layer("Controls").effect("Flash Frequency")("Slider"); // Hz
burstlength=2; // in frames
f=time%(1/frequency);
t < framesToTime(burstlength) ? 100 : 0;;
}else
0
James Valpy
Black Dog Video