-
Blinking Effect for Audio Avatars
Hi,
So I’ve been using Adobe After Effects to create Audio Avatars for videos.
They are just small round smiley faces that use this code:
temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
[100, thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”) * 7]This code is attached to the size function of a black semi-circle which acts as the mouth and talks when the linked audio picks up sound. So when there is audio, the black semi-circle gets bigger, and when all is quiet, it shrinks to the size of a flat line.
What I am trying to achieve now is the exact reverse to create a blinking effect for the eyes. So for the eyes which are black circles I want them to shrink when audio is picked up as opposed to grow. This saves me from actively creating hundreds of keyframes where I am manually having to shrink the eyes every so often to create this effect; it will instead be opperated automatically by the code.
Any ideas on how I can achieve this?
temp = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
[100, thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider") * 7]