-
using the expression if/else
I have an image that I animated were the lights in the image light up. I want to sync the intensity of the lights to music. I know that you need to convert the audio to keyframes and parent the intensity settings to the audio keyframes. But what my issue is that some of the keyframes in the audio go over the limit that I want it to go. For example I want to keep the light intensity no higher than 8% but there are keyframes in the audio that go over that. What ends up happening is that the light goes over exposed to much and it doesn’t look realistic. Here is what the expression looks like when I parent the light intensity to the audio
thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)
I know that you can add a negative number like so
thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)-2
But what ends up happening is that it effects all the key frames so the key frames that are at 2% end up being 0% and it throws off the motion.
I just need help with writing an expression that tells Ae that if there is a key frame that goes over 8% to keep it at 8% and anything else that is below 8% to keep the same as the audio keyframes.
Hopefully the way I explained this makes sense.Muchos Thank You’s