Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects paint effect from audio(keyframes)

  • paint effect from audio(keyframes)

    Posted by Simon Robbrecht on February 25, 2007 at 9:38 pm

    Hi,

    I am trying to build a colored section with the paint effect. Piece of cake. Unfortunately i haven’t got a clue how to build the section up gradually in sync with the music. When converting the audio to keyframes and copy-pasting those keyframes to the “end”-property in the paint effect, the stroke builds up when the music’s amplitude rises but – logically – the stroke disappears again when the music fades.

    What i am trying to do, is to build up the stroke when the amplitude of the music increases but not to let the stroke disappear when the amplitude fades. When the music fades, the stroke should just pause for a while only to grow bigger again when the music’s amplitude rises again. What i am trying to do is basically let the “end” property of the paint effect grow gradually to 100% but in such a way that the increase is related to the amplitude of an audio layer: the louder the music, the faster the stroke builds up.

    Does anyone have a clue how to do this? Probably an expression should do the trick… (i am a complete newbie to expressions)

    Thanks a lot for your help!

    Simon Robbrecht replied 19 years, 2 months ago 3 Members · 5 Replies
  • 5 Replies
  • Mylenium

    February 26, 2007 at 5:39 am

    Well, the easy way would be to get Trapcode Soundkeys. It has a built-in function for just what you want. An expression is certainly possible, but I wouldn’t advise it. It would have to be pretty complex and run in a while() loop, thus being potentially slow. The thing would be to accumulate the values, but inside the loop have a conditional statement – if the next keyframe value has a certain difference to the previous one, it adds up, if it’s below a certain threshold, it’s ignored. I’m not quite clear in my head at 6.30 in the morning and loops are not my strong suit, so maybe wait a while until Colin drops in or someone else has some code handy. *off for the morning tea*

    Mylenium

    [Pour Myl

  • Nate Vander plas

    February 26, 2007 at 6:11 am

    You could maybe play around with the Echo effect. If you set the length of time the echos stay long enough, the painted parts would stay painted I think. Not exactly sure what you’re doing, but that’s all I could think of.

  • Simon Robbrecht

    February 27, 2007 at 11:27 am

    Thanks for the tip! I got the Soundkeys plug-in but I think I am missing out on something. The plug-in converts audio to keyframes allright but I think I still need an expression to let the “end” property of the paint effect grow gradually depending on the keyframes generated by the soundkeys effect, right?

    Since the amplitude of the music does’nt grow gradually, the keyframes generated by soundkeys won’t do either. I can generate an output by opting for the on/off mode but there is no way to “freeze” the generated output and build it up gradually.

    Perhaps I overlooked something, the manual is very very basic i think.

    Does anyone have a clue?

    thanks!

  • Mylenium

    February 28, 2007 at 7:08 am

    Set the falloff to “none (Integrate)”, that shoudl give you what you need. Then simply connect the End parameter of the Stroke to the output with a pickwhip expression.

    Mylenium

    [Pour Myl

  • Simon Robbrecht

    February 28, 2007 at 9:44 am

    that does the trick very well.

    Thanks a million!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy