Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Fadeout/in on Sound Layers by expression

  • Fadeout/in on Sound Layers by expression

    Posted by Lutz Krekel on September 15, 2021 at 3:18 pm

    Hello, try to do a fade Out fade In Expression for Sound Layers in Time Responsive Morgts.

    May anyone could help me?

    Should detect In and Outpoint by using inPoint and outPoint and fade during 20 frames from minus 40 to 0.

    Graham Quince replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Graham Quince

    September 18, 2021 at 11:02 am

    This expression should work, I think:

    var fadeTime = 3; // in seconds

    var soundLevel = 0;

    var noVolume = -96;

    var level = noVolume;

    if (time < inPoint + fadeTime){

    level = linear(time,inPoint,inPoint + fadeTime,noVolume,soundLevel)

    }else if (time < outPoint - fadeTime){

    level = soundLevel

    }else{

    level = linear(time,outPoint - fadeTime,outPoint,soundLevel,noVolume)

    }

    [level,level]

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