-
Targeting opacity with audio levels
Hi all,
I’m currently working on a project with a very short deadline and need help targeting the opacity of some layers with the audio levels.
I have converted audio to keyframes, grappled the opacity of the layer to th “Both Channels” Slider.
What I’m creating is basically an equalizer, so there are different panels that move in accordance to the level of audio.
These panels are made up of seperate cubes (pngs’) on seperate layers, and I need to tell after effects to make to opacity of each layer either 100 or 0 when the audio reaches a certain level.
this is wht I have written out so far, but it’s not working.
thisComp.layer(“AudioTreble”).effect(“Both Channels”)(“Slider”);
if (“AudioTreble” >50) 100 else 0this is in the opacity of the layer i need to effect, and the audio layer is called “AudioTreble”.
Any help will be gratefully appreciated!
Thanks,
Liam