Animated Mask by music

Moderators: Disciple, zlovatt

Post Reply
Siggi
Posts: 1
Joined: January 2nd, 2012, 6:41 am

Hallo,

I would like to make a mask animated by music. The height of the mask should change according to the sound. I Have already converted Audio into keyframes. What I need now, is the Expression for the maskpath to apply the audiokeyframes to the mask.

Thanks in advance for your help and please apologize my bad english (come from Germany)

Best regards
Siggi
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

One thing you could do is to keyframe the mask path (at its minimum size) at time zero, move down the timeline as many frames as the maximum amplitude of your audio and set the mask path there to its maximum height. Then add an expression like this to the Mask Path:

s = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
valueAtTime(framesToTime(s));

The mask should now get its size from the frame number matching the audio amplitude.

Dan
Post Reply