-
Change value every X frames
Hello, I’m trying to do a image that reacts to the audio, the image has two states, the deafult and one that activates when a certain threshold is reached, I know how to do this but I only want to check if the threshold is reached every “X” frames. I have done a “ticker” that changes his opacity every 10 frames and it works, the problem is with the two state changing image. This is the code I’ve used:
dato=(effect("Both Channels")("Slider"));if(thisComp.layer("tick 30 frames").transform.opacity==100){
if(dato>12){
value=100;
}else{
value=0;
}
}
It analyzes the expression correctly when the ticker activates but when the first if is false it doesn’t keep the value. Can you help me?
Sorry, there were no replies found.