Jump to content

  •  

  • iBotModz CBox


    Photo

    Creating an animated Volume Meter with after effects


    • Please log in to reply
    6 replies to this topic

    #1 Snowmon333♥

    Snowmon333♥

      1337

    • Retired Staff

    • 1,029 posts
    • Joined: 25-August 07

    Posted 02 July 2008 - 02:13 PM

    In this tutorial you learn how to make a working volume meter in adobe after effects, it actually works because it is connected to the music



    Create a 320*240 composition.

    Import three solids: red, yellow, and green, each the size of 50*70 and arrange them as a volume meter:



    Now we need to give it the look of real volume meter. Let's pre-compose the three solids, by selecting them, and pressing Ctrl+Alt+C (I found that Ctrl+Shift+C works for me) and choose the option ?¢â??¬???move all attributes into the new composition?¢â??¬? and name it volume meter.

    Import a new solid with a width of 50 and a height of 210 and lay it over the volume meter.

    On this new solid we?¢â??¬â??¢ll apply the grid effect, from the Render group. Give the Border the value 4, and the anchor the value 70, 100, and corner value -10, 108

    Change the color to black

    Now it should look like this



    Now again, precompose the two Layers, let's name them volume meter (again) and apply the Glow Effect from the Stylize group, and we have our volume meter.



    Part Two


    We need this volume meter to respond to music, lets import a sound file, drag it to time line, and then right click it.

    From keyframe assistant choose "convert Audio to keyframes" and you'll have a new layer called "Audio Amplitude". Click the small triangle next to the layer, choose effects, then click the triangle next to "both channels" you'll see a stop watch next to the word "slider". keep it opened, because we'll need it soon.

    On the volume meter layer, apply the Linear wipe effect from the transition group, make the wipe angle 180.

    Alt click the stop watch of the "transition complete" and drag the pick whip from transition complete to the slider in the Audio Amplitude Layer:



    You'll notice that this is not the result you wanted as the red area is moving slowly and in the opposite direction.

    Let's correct this by going to the transition complete, where we see the following expression written:

    thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")

    Press the expression -so you can edit it- and at the end of it write *-2+100, so our new expression will be:

    thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")*-2+100

    If you don't care to know what this addition did, it's ok but if you do, here's what happened:

    When we gave a transition angle of 180, we meant that we wanted the transition to be from up to down, then we linked it to the audio keyframes. The problem with those keyframes is that when there is no sound, they have the value of zero, and they have greater value when the sound is louder. So, by adding 100 to the transition, it makes the transition has a 100% value when there is no sound, by multiplying it with a minus number, it moves. Let's say that the music keyframe has the value of three, the result of the transition will be: 3*-2+100=94.

    Why -2 and not -1? Because the differences between keyframes values are very small, so we have to "amplify" these differences by multiplying them.. you can try other numbers, but the result will be very extreme and not realistic.

    Part 3 3D

    Our job is technically done, but we still can add some fun to our composition.

    Create a new composition, and drag comp1 to it. Duplicate it three times, so we have four copies of it. Name the layers: front, back, left right, and turn them into 3d layers.

    Give the four layers the following transform values:

    * front: change the y position to 95, x to 135, and z to -21
    * back: change the change the y position to 95, x to 135, z to 24
    * right: give the y rotation a value of 90 degrees and change the y position to 95, x to 160, z to 0
    * left: give the y rotation a value of 90 degrees and the y position to 95, x to 107, z to 0


    Last part Now I tried this last part and I could not figure it our, it is not necessary to do

    now add a new layer, make it 3D layer. give it the following values: position values: 170,203,0

    Add a new spot light, with the option cast shadow turned on. from the material option of each layer, activate the cast shadow option.

    Add a new camera, and add the following expression to the position property of the camera: [Math.sin(time)*z,y,Math.cos(time)*z]

    where z is the zoom value of the camera, and y is y position of the targeted layers, in our case the expression goes like this:

    [Math.sin(time)*507,120,Math.cos(time)*507]

    You'll notice that the camera is now moving in a circle around our volume meter




    Original tutorial by Talid Al Khatib of Cretivecow.net
    Changes made by snowmon of ibotmodz.net

    I forgot to put what i got from this tutorial

    [youtube:2y4xytja]CqhzPIDDaJQ[/youtube:2y4xytja]

    Attached Images

    • pic1.jpg
    • pic3.jpg
    • Glow.jpg
    • Audio.jpg


    #2 SmokiestGrunl

    SmokiestGrunl

      Australian Retired Staff

    • Retired Staff

    • 3,888 posts
    • Joined: 02-September 07
    • Gender:Male
    • Location:Australia

    Posted 02 July 2008 - 04:41 PM

    Wow this is sweet I'll have to give it ago.

    Also whats the name of that song?

    #3 Snowmon333♥

    Snowmon333♥

      1337

    • Retired Staff

    • 1,029 posts
    • Joined: 25-August 07

    Posted 02 July 2008 - 05:37 PM

    Now You're Gone by Basshunter

    #4 SmokiestGrunl

    SmokiestGrunl

      Australian Retired Staff

    • Retired Staff

    • 3,888 posts
    • Joined: 02-September 07
    • Gender:Male
    • Location:Australia

    Posted 02 July 2008 - 07:52 PM

    I'm not getting the pick whip do you know why?

    Here is a screeni

    Attached Thumbnails

    • Untitled.png


    #5 Snowmon333♥

    Snowmon333♥

      1337

    • Retired Staff

    • 1,029 posts
    • Joined: 25-August 07

    Posted 03 July 2008 - 08:51 PM

    reallly hope this pic helps

    Attached Thumbnails

    • ae explanation.jpg


    #6 Snowmon333♥

    Snowmon333♥

      1337

    • Retired Staff

    • 1,029 posts
    • Joined: 25-August 07

    Posted 29 October 2008 - 10:42 PM

    what happened to all the pictures ?

    #7 SmokiestGrunl

    SmokiestGrunl

      Australian Retired Staff

    • Retired Staff

    • 3,888 posts
    • Joined: 02-September 07
    • Gender:Male
    • Location:Australia

    Posted 30 October 2008 - 01:08 AM

    I think Peaches host deleted everything or made him delete things.