-
Problem with a simple expression
Hi,
I cant figure out what wrong with this expression:
opacity=thisComp.layer(“soundhomme”).effect(“Sound Keys”)(“Output 1”);
if (opacity <; 50){ (100); }else{ (0) ; } Like you see I use the soundkey plugin output that return values between 0-100 from audio analyse. I want the value to be 0 or 100, so rounded values.I pickwip the output value of soundkey from the opacity of the layer I want to animate, than add the "opacity=" at the beginning of the expression, and the " if (opacity < 50){(100);}else{ (0) ; } " at the end. Also it return no error! Thanksopacity=thisComp.layer("soundhomme").effect("Sound Keys")("Output 1");
if (opacity < 50){
(100);
}else{ (0) ; }