Progress Bar Tutorial w/ Percent Sign - T049

Фильм және анимация

In this After Effects motion graphic tutorial we are going to be taking a look at how to rig a progress bar / loading bar or percentage bar in After Effects. This percentage bar / progress bar uses a Slider Control to determine the the scale of the progress bar, the percentage, and the position of the percentage indicator.
The percentage sign is "baked" into the slider controller number so a secondary text layer is not necessary. This trick can be used for dollar signs as well.
Formulas:
thisComp.layer("Null").effect("Slider Control")("Slider").value.toFixed(0) + "%"
x = (x2) - (100-Slider)*(x2-x1)/100
In this After Effects motion graphic tutorial we are going to be taking a look at how to make an animated number counter / KZread view counter with comma. This technique was learned through Creative Cow and uses After Effects CC scripts to accomplish a number counter with Slider Control.
CreativeCow.net (script)
forums.creativecow.net/thread...
✖ New Website - www.MoboxGraphics.com
✖ Twitter - / moboxgraphics
✖ Instagram - / moboxgraphics
✖ Facebook - / moboxgraphics
Music by: www.epidemicsound.com
Workstation:
Intel i7 4790 @ 3.60GHz
PNY GeForce GTX 770 w/ 4Gb ram
32Gb DDR3 @ 2400GHz
500GB Samsung Solid State HHD
2TB Standard Drive
MSi Z97-G55 Motherboard
I record with GeForce Shadowplay
Motion Tool: www.mtmograph.com/motion/
Editor's Note:
Loading bars in after effects are quite diverse, but often time require animated numbers. To animate a number counter in after effects, it's important to use a number slider and after effects expressions. In addition, often time you're required to include a comma, period, dollar sign, or percentage sign to the animated numbers. Without proper expressions, this is very complex. Counting numbers up or counting numbers down is as simple as utilizing a slider controller i.e. after effects number slider. Animated counting number or animated KZread view count is a basic after effects tutorial technique that everyone needs to know. Hope you learned a thing or two.

Пікірлер: 67

  • @abhijitbharadwaj5369
    @abhijitbharadwaj53697 жыл бұрын

    Probably one of the best AE tuts on KZread

  • @yieki1
    @yieki13 жыл бұрын

    Thanks for the video. Trying to learn something new everyday in After Effects.

  • @Carmai7
    @Carmai77 жыл бұрын

    Woooooow! This is some mad science stuff here!

  • @keithgandy7920
    @keithgandy79206 жыл бұрын

    Thank you, so much. That was helpful.

  • @graphicnerd4185
    @graphicnerd41852 жыл бұрын

    Thank you so much sir for your kind tutorial . Really apreciate your efforts keep rocking

  • @nijatIbrahimli
    @nijatIbrahimli6 жыл бұрын

    cool tutorial, thank you!

  • @aoboard
    @aoboard5 жыл бұрын

    Dammmmnnn, you save me, i need to learn more of this wizardry expressions thing. Tnx a lot!

  • @bertranga15
    @bertranga157 жыл бұрын

    I've learned a lot, thank you :) !

  • @hartyom
    @hartyom7 жыл бұрын

    x=thisComp.layer("Null").effect("Slider Control")("Slider").value; linear(x,0,100,165,1755) this will work as well

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    +Artyom Hov. Thanks!!

  • @StongePWilde

    @StongePWilde

    7 жыл бұрын

    Pretty useful, thank you so much! :D

  • @saitejabalusu5936

    @saitejabalusu5936

    5 жыл бұрын

    what is the programming language that u are using

  • @IsionIndustries

    @IsionIndustries

    5 жыл бұрын

    This expression worked wonders! Instead of entering different values for the length of the bar, can I tie those values (100, 165, 1755) to an expression where they automatically change instead of manually entering the values.

  • @brainuser312

    @brainuser312

    4 жыл бұрын

    Not really. You will not be able to edit graph neither with 'linear' nor with 'ease' expressions.

  • @DHPshow
    @DHPshow7 жыл бұрын

    Best one, needed that expression thanks, you got my sub

  • @goputrooper4474
    @goputrooper44747 жыл бұрын

    Great tutorial!

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    Thanks for watching!

  • @DocworldAcademy
    @DocworldAcademy7 жыл бұрын

    great Tutorial

  • @marcelolimaegomes
    @marcelolimaegomes7 жыл бұрын

    Dude, you save me!

  • @JackyRogers
    @JackyRogers6 жыл бұрын

    You are a genius !!!

  • @ripondesign
    @ripondesign5 жыл бұрын

    Nice useful Tutorial

  • @cryptclown
    @cryptclown5 жыл бұрын

    did not know I wanted this until I saw it.

  • @TheBlackHell-xm8tl
    @TheBlackHell-xm8tl7 жыл бұрын

    Dude, you're cool, thank you.

  • @sohaelnassag601
    @sohaelnassag6017 жыл бұрын

    thanks soooooo much

  • @manle011
    @manle0117 жыл бұрын

    This was a really awesome tutorial. This is the kind of thing that really opens my eyes to what's possible with formulas. Keep up the great work.

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    Yeah, you could have easily keyframed the position of the marker, but I really think there is a lot of value when a composition is rigged together so keyframes don't get in the way and you can really focus on creating the smoothest / best motion and timing. Glad this helped!

  • @manle011

    @manle011

    7 жыл бұрын

    I'm definitely going to be using this technique on a video project I have coming up. There are a lot of changing numbers and percentages and this kind of thing will make things a bit easier to adjust. Also, I totally didn't know you could use expressions to add a % at the end of a number sequences. This is going to save me a ton of time doing the 2 layer method you referenced.

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    Yeah somebody asked me last week how to do it, and I was determined to figure it out! Not a lot of resources out there for such a simple request, believe it or not.

  • @manle011

    @manle011

    7 жыл бұрын

    It seems the general rule of thumb is any time you ask yourself, "There has to be a better way to do . . ." there probably is. I've picked up a lot of time-saving tips from a lot of your videos but this is definitely one of the most practical tutorials I've seen in a while.

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    Yeah expressions are the new frontier for me. I'm only just now getting familiar with everything they can do. There's always a better, faster, more efficient, cleaner, smoother way of doing anything. It's both great, but also exhausting.

  • @dikzdesign
    @dikzdesign6 жыл бұрын

    thank... this is what i need :)

  • @kerenalcazar2272
    @kerenalcazar22724 жыл бұрын

    You. Thank you for the tutorial. It was really helpfully To make the bubble follow the size of your bar, you can make a new path the same size of your bar, than use create nulls from paths and then you take out the expression on progression , put it in 100 % and your stoke (the path) you have to parent it to your barre, and your bubble you have to parent it to the null. Now your bubble follows your bar :) but I think it is not more easy or better, it is just a different way. I hope I was clear.

  • @FLOWTUTS
    @FLOWTUTS7 жыл бұрын

    nice

  • @wumingstudio3140
    @wumingstudio31405 жыл бұрын

    Thank i find the percentage follow the bar fomular long time

  • @capossi
    @capossi5 жыл бұрын

    Nice tutorial! Thank you so much, my friend! Do you know what I have to do if I want to put the percent sign smaller than the numbers? You are awesome!

  • @Yungnicki
    @Yungnicki7 жыл бұрын

    awesome

  • @lakera6860
    @lakera68606 жыл бұрын

    If you still want to do the method in the video, I suggest making variables so that if you have to change the values at any given point you just only have to do it once and won't miss anything. Like: var x1 = 165; var x2 = 1755; x2(100 - slider)(x2 - x1)/100; Not sure if you need semi-colons, but I think that'd be a little less confusing and easier to manage. Overall it's a great tutorial and I'm trying to learn to do animations like these.

  • @colorscream

    @colorscream

    6 жыл бұрын

    or get the values from the parent like position left and position left + width

  • @colorscream
    @colorscream6 жыл бұрын

    I've created recently a progress bar tutorial where you dont need to used fixed position values but inherit it from the parent.

  • @aedicas
    @aedicas7 жыл бұрын

    Nice!

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    Wow, just checked out your channel. You're a master at AE!

  • @aedicas

    @aedicas

    7 жыл бұрын

    Thanks! Always trying to get better at this craft! Hey, I just released a new show at my channel, maybe you could participate one day. I can add subtitles.

  • @sunlisker
    @sunlisker3 жыл бұрын

    ty

  • @MarkWillmore
    @MarkWillmore3 жыл бұрын

    Can you share for download a template, or how to do it on premiere pro?

  • @XAVMotionDesign
    @XAVMotionDesign Жыл бұрын

    Hmmm, why not a black stroke with trim path linked to the slider control?

  • @maksymyegorov5023
    @maksymyegorov50234 жыл бұрын

    Thank you! Tell me please what should I do if I need 75%?

  • @brainuser312

    @brainuser312

    4 жыл бұрын

    This formula actually turns numerical values (that the position uses) into %, so you can just change the last keyframe to 75, and your bar will stop at 75% of the path.

  • @RaquelFantasia
    @RaquelFantasia7 жыл бұрын

    Another solution for X Position of the Pointer: pInitial=thisComp.layer("Progress Bar").transform.position[0]; SizeBar=thisComp.layer("Progress Bar").content("Rectangle 1").content("Rectangle Path 1").size[0]; Where=thisComp.layer("Null 2").effect("Slider Control")("Slider")/100; temp=pInitial+(SizeBar*Where); [temp]; --------- Explanation: The initial X Position of the Pointer must be the initial X Position of the Progress Bar. >>> pInitial The X Position of the Pointer along the time will be the initial X Position of the Progress Bar plus the length variation of the Progress Bar. We must use the first value (a) of the size of the Progress Bar (a,b) to get its length. >>> SizeBar The value of the Slider Control must be in percentage so we will divide it by 100. >>> Where The length variation of the Progress Bar is SizeBar multiplied by Where.

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    I haven't tried this, but I'm pinning it as it may help other users. Will try this when I get home! Thanks for the comment Raquel

  • @RaquelFantasia

    @RaquelFantasia

    7 жыл бұрын

    Today I tried to do it instead of adding the video to Watch Later Playlist. I didn't know about "value.toFixed(0)". Thanks for sharing it!

  • @amyloureth

    @amyloureth

    5 жыл бұрын

    This was the only method that worked for me! Thanks.

  • @IsionIndustries

    @IsionIndustries

    5 жыл бұрын

    This expression worked for me as well, although Is there a way to get rid of the /100 part so that the pointer just aligns automatically instead of adjusting that /100 value?

  • @osrf4415
    @osrf44157 жыл бұрын

    Do you think you can release a template for this?

  • @last_theorem
    @last_theorem6 жыл бұрын

    I have a better alternative for you. 1>>You can use the numbers from the text layer to scale the length of the bar. 2>>The code in the text layer actually returns string but in can be converted with parseInt(). 3> Then alter it with linear expression you want. //This would convert text from the Text layer to number; var temp =parseInt( thisComp.layer("count").text.sourceText); [temp,100] //Use the same link in the parent layer of that pointer and text. var temp = thisComp.layer("Shape Layer 1").transform.scale[0]; var pos =linear(temp,0,100,496,1224); [pos,524];

  • @Nadeeraasanka
    @Nadeeraasanka5 жыл бұрын

    Thanks... Problem solved

  • @kevinosborne3793
    @kevinosborne37934 жыл бұрын

    how can it be done if the total isn't a percentage. for example 900

  • @StoIen
    @StoIen7 жыл бұрын

    couldn't you just parent the number shape to the position and change the position of the bar instead of scale.

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    +Stolen yes but then the number would not be a percentage. But I suppose you could just do x2/x1*100

  • @GiulioMoura
    @GiulioMoura7 жыл бұрын

    Jesus Christ.. right after you say: Now you see, its fully attatched... But there's a problem! I'M LIIKE.. WHAAAT? Dude just created a formula... no problems should come for the rest of the day at least.. hahah

  • @sim632
    @sim6327 жыл бұрын

    second!

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    :D

  • @SKLL3TR
    @SKLL3TR7 жыл бұрын

    ammmmmmm i would rather download the template and edited instead of making it because it looks so confusion and i suck at this math thing lol :) but good tutorial

  • @moboxgraphics

    @moboxgraphics

    7 жыл бұрын

    +WinCity it's super simple if you follow the steps :)

  • @tianaricci3087
    @tianaricci30875 жыл бұрын

    a tutorial is how u explain things sweetie you already has everything madr

  • @Lycku
    @Lycku7 жыл бұрын

    These videos are like crack to me. I think there's a problem.

  • @NellySantaCruz
    @NellySantaCruz4 жыл бұрын

    awesome tutorial. Thank you! I need come back to my math class hehehe Greating from Panama.

Келесі