-
increase number by one
Hello there, I’m in a rush and can’t find anything in fast enough searching.
We are doing this vocal sync animation with the puppet tool, triggered with audio to keyframes. It’s a comp of the mouth opening time remapped so it jibbers to the sound.
To get some variation I thought I’ll put a second layer on top where the opacity would alternate every time the value hits 0.
This is the expression so far… in the opacitya =0;
input=comp(“03_cap v2”).layer(“Light Gray Solid 3”).effect(“Sound Keys”)(“Output 1”);
soundk=linear(input, 3, 12, 0 , 100);
if (soundk == 0) {a ++};
if (a % 2 ==0) {100}
else 0I was hoping the value a would increase and that way every other time the upper layer would be visible. But I assume the a++ doesn’t work as the value of a is set to 0 every time the expression is run.
Would there be a better way to do this?