Navigation

    Dataclay — Automating Digital Production
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users

    Tip: After Effects expression to fade out audio

    Templates
    2
    2
    621
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jon
      Jon last edited by

      Hello! A quick tip on how to fade audio with Templater via an expression. Since Templater can dynamically swap a wide variety of media sources of varying lengths, you can’t count on keyframes to be able to accommodate the variation of durations for consistent fade-outs of audio tracks. Here’s a sample of how to do that. Apply this expression to the Audio Levels.

      fadeTime = 30; //frames for fade
      audio.audioLevelsMin = -48; 
      audio.audioLevelsMax = audio.audioLevels[0];
      layerDuration = outPoint - inPoint;
      singleFrame = thisComp.frameDuration;
      animateOut = linear(time, (outPoint - framesToTime(fadeTime+1)), (outPoint-singleFrame), audio.audioLevelsMax, audio.audioLevelsMin);
      [animateOut,animateOut];
      

      In this example, the expression takes the audio level you’ve set and fades to -48 db over 30 frames (assuming 30fps composition, that is 1 second).

      1 Reply Last reply Reply Quote 3
      • GwynEaves
        GwynEaves last edited by GwynEaves

        Hi…you can use the pick whip to link rotation values between layers to animate the hands on a clock—as the hour hand moves from hour to hour, the minute hand rotates the full circumference of the clock face. This type of animation would take a long time to create if you had to set each keyframe for both hand layers, but with the pick whip, you can do it in a matter of minutes.

        assembly circuit

        1 Reply Last reply Reply Quote 1
        • First post
          Last post