Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects basic expression for audio question

  • basic expression for audio question

    Posted by Raystar Devo on February 22, 2008 at 2:19 am

    Hi
    Am Learning Expressions and have what’s likely to some out there a very basic-level q:

    I want an eps Icon to scale up and down in relation to multiple bell clangs on an audio file. I converted the audio to keyframe and linked the scale pikwip to the slider in the null/audioAmplitude layer.

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

    this worked except that the volume (slider value) goes from about 11 to 23 and I want the icon to “pulse” from 100 to 240%. I checked out Ahron Rabinowitz’ tutorial on audio expressions and thought I would have it with this:

    x = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    linear(x,10,20,100,240)

    but got an expression must be of dimension 2 not 1 warning.
    I’m sure it’s something very simple but have tried a lot of variations I thought were logical.

    any help is good help

    thanx

    Raystar Devo replied 18 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 22, 2008 at 4:15 pm

    This should do it:

    x = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    s = linear(x,10,20,100,240);
    [s,s]

    Dan

  • Raystar Devo

    February 22, 2008 at 6:10 pm

    That’s It!

    Worked like a charm, Thanx Dan

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