Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression: audio to control CC radial fast blur

  • expression: audio to control CC radial fast blur

    Posted by Quentin Block on September 15, 2011 at 8:04 pm

    Hello,
    Any tips for an expression that will enable the CC radial fast blur effect to be controlled by audio amplitude (both sliders)?

    I’ve tried modifying this to make an adjustable expression but no luck:

    minAudio =2;
    maxAudio = 25;
    minStretch = 90;//minimum in percent of scale
    maxStretch = 200;//maximum in percent of scale

    audioLev = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);

    s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);

    [s,s]

    any help would be much appreciated!

    Dan Ebberts replied 14 years, 11 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 15, 2011 at 8:31 pm

    Are you using the expression to control the Amount parameter? If so, you just need to delete the last line ([s,s]).

    You’ll probably want to adjust the minStretch and maxStretch values as well.

    Dan

  • Quentin Block

    September 15, 2011 at 8:53 pm

    Many thanks Dan!
    That worked well. You made my day!

    2 questions if you have time to answer…

    Does ‘stretch’ always refer to the amount within expressions? (I thought it had something to do with scale…)

    also, can you tell me what the [s,s] was for?

    Cheers,
    QB

  • Dan Ebberts

    September 15, 2011 at 9:01 pm

    That expression was designed to manipulate a layer’s Scale property in response to audio amplitude. [s,s] causes the x and y scale to be the same, so the layer scales uniformly. minStretch and maxStretch are just arbitrary variable names for the resulting min and max values of the property hosting the expression. “stretch” in this case is related to the expression’s initial purpose as a Scale expression. This would work just as well and probably makes more sense for your application:

    minAudio = 2;
    maxAudio = 25;
    minBlur = 90;
    maxBlur = 200;

    audioLev = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    linear(audioLev, minAudio, maxAudio, minBlur, maxBlur);

    Dan

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