Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions quick expressions question, audio + scale on layer

  • quick expressions question, audio + scale on layer

    Posted by Duncan on February 6, 2006 at 5:33 pm

    just a quick one, i have 20 solid layers that I want to use the audio keyframe data to make them scale in time with the music. I cant get the expression pick whip, only seems to work with text laters? Am I stupid? Gonna read the manual on the way home, but if anyone could help me I appreciated it.

    NICE ONE!

    Duncan
    AE 6.5 Pro, WinXP.

    Mike Clasby replied 20 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Mike Clasby

    February 6, 2006 at 6:25 pm

    It should work.

    Are you pickwhipping to a Stopwatch?

    Alt Click the Scale Stopwatch for the layer(s) you want to scale with the music, then pickwhip that to the Slider (“E” on the Audio Amplitutde Layer reveals the Left Channel, Right Channel, Both Channels, Twirl Down one of those to expose the Slider, you need to pickwhip to the stopwatch).

    This starts at 100% for the layer(s) and adds scales up with the music:

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

    The *20 is just to multiply the audio temp values as they are small. Adjust to get the size increase you want.

    This just uses the music temp values so the layer is the size of the temp values (again with the *20 so we can see it better).

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

  • Duncan

    February 7, 2006 at 9:29 am

    Brilliant, thanks, brain was dead at 17:30 last night, this works a treat. Cheeeeerrs

  • Duncan

    February 7, 2006 at 10:18 am

    can this be applied to affect only the height of my layers?

  • Mike Clasby

    February 7, 2006 at 6:06 pm

    I’m assuming you used this expression:

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

    Modify the last line to:

    value + [[0], temp]*20

    If you wanted to just expand horizontally it would be:

    value + [ temp,[1]]*20

    Note: if you want it to only expand up, not both up and down, move the layers anchor point to the bottom of the layer(Pan Behind Tool (Y) is easiest).

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