Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions pick whip to fade up sound

  • pick whip to fade up sound

    Posted by David Tannenbaum on September 23, 2006 at 10:53 pm

    First let me say that I am not a coder.

    I used the pick whip to have a fade from 100%-0% control the fading of a soundtrack. However, because the fade was going from 100-0 that’s the direction that the sound fade went: 100%-0%. I want the inverse to happen: As the fade goes from 100-0, I want the sound to go from 0-100.

    I am not sure where and what to change in the code. This is what the pick-whip generates
    thisComp.layer(“fade in solid”).transform.opacity

    Mike Clasby replied 19 years, 7 months ago 4 Members · 5 Replies
  • 5 Replies
  • Mike Clasby

    September 24, 2006 at 7:07 am

    I’m confused (nothing new) I didn’t know AE has a way to fade audio from 100 to 0%, I thought Audio was controlled by the Audio Levels Stopwatch, 0 to -48 (or so) dB. Is this an AE 7 thing? Are you using Filip’s script?

    If you are stuck where you say, you should be able to use the old linear Interpolation:

    linear (t, tMax, tMin, value1, value2)

    The linear Interpolation would be (I think):

    linear (t, 100, 0, 0, 100)

    I just don’t know what your “t” is.

    Maybe Dan or someone in the know will help.

  • Mylenium

    September 24, 2006 at 12:18 pm

    There’s a bazillion ways to go about this, but the easiest one would be using the keyframe methods:

    linear(thisComp.layer(“fade in solid”).transform.opacity,100,0,0,100)

    Mylenium

    [Pour Myl

  • Mike Clasby

    September 24, 2006 at 6:28 pm

    Mylenium, when I apply your expression to the Audio Levels of the Audio Layer I Get this error:

    After Effects warning: Class ‘Layer” has no property or method named ‘transform’.
    Error occurred at line 1.
    Expression disabled.

    Is this “transform” an AE7 expression change? I’m just trying to fill in my gaps in knowledge of AE, how do you control the fade of an audio layer from 100% to 0%? I always thought it was with Audio Levels stopwatch, is there another way, with percentages? Seriously, I’d like to know as it sounds alot easier. Is there another way to do an audio fade in AE, other than Audio Levels?

    I don’t know where his original expression came from by pickwhipping, to what?

    thisComp.layer(“fade in solid”).transform.opacity

    When I pickwhip from an Audio Layer’s Audio Levels to the “fade in solid” layers opacity, I get:

    temp = thisComp.layer(“fade in solid”).opacity;
    [temp, temp]

    What am I missing. I know this is probably a Gap in my basic knowledge of AE, but I’m stumped. Is this an AE7 addition (% controlling audio fade), or just my gap (first stages of Alzheimer’s)? Have mercy, put me out of this misery.

    Thanks in advance.

  • Steve Roberts

    September 24, 2006 at 6:51 pm

    [yikesmikes] “I’m just trying to fill in my gaps in knowledge of AE, how do you control the fade of an audio layer from 100% to 0%?”

    Effect>audio>stereo mixer?

  • Mike Clasby

    September 24, 2006 at 9:10 pm

    Thank you.

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