Это видео недоступно.
Сожалеем об этом.

if/else Conditional Statements | After Effects Expressions

Поделиться
HTML-код
  • Опубликовано: 19 мар 2018
  • The if/else conditional statement is one of those expressions that, once you understand it, completely unlocks the door to so many possibilities. You can use it to make complex expression rigs, or simple switch controllers to make your workflow easier. This one really is a game changer.
    School of Motion Tapered Stroke Expressions Walkthrough:
    www.schoolofmo...
    www.schoolofmo...
    Feel free to ask questions or leave feedback in the comments! And if you have any ideas for other tutorials, I'm all ears!
    My Skillshare Classes: bit.ly/jbskill
    Explainer Camp: www.schoolofmo...
    Instagram: bit.ly/jbinst
    Dribbble: bit.ly/2tJz5Ay
    Twitter: bit.ly/2tOX7ui
    My amazing music package was made by Sonos Sanctus
    - www.sonosanctus...

Комментарии • 100

  • @lukeleisner8333
    @lukeleisner8333 6 лет назад +5

    The level of attention to detail and professionalism displayed in this video is remarkable. Give it time Jake and your videos are going to take off like a rocket.

    • @JakeInMotion
      @JakeInMotion  6 лет назад

      Thank you so much! So glad you liked it!

  • @JohnSundayBigChin
    @JohnSundayBigChin 2 года назад +3

    I never thought that the years of programming in the university 10 years ago could be of any use to me. Excellent content, keep it up my dear Jake!

  • @user-uq9fp9vk5j
    @user-uq9fp9vk5j Год назад

    I'm from Taiwan, and I really appreciate you so much.
    I am currently creating an instructional animation for school use in drawing.
    I need to draw hundreds of animations that are repetitive but not exactly the same.
    Your video has been a great help to me.
    Thank you so much.

  • @mediocreape
    @mediocreape 9 месяцев назад

    I can't believe how well made this video is. Great Job Jake!!! you've helped so many people.

  • @ThatMelaninLife
    @ThatMelaninLife Год назад

    You're a great teacher! It's helpful that you go deeper giving us context for each thing. Thank you.

  • @Motion_Canyon
    @Motion_Canyon 2 года назад

    Jake, you are the best teacher of expression! It's too easy for understanding! I finally understood if and else conditional statement! Thank you!)

  • @jpegweber
    @jpegweber 5 лет назад +2

    This was fantastic. Very well thought out and easy to understand. Can't wait to figure out unique ways to throw this in a rig. Keep it up, man!

  • @caiobernspereira
    @caiobernspereira Год назад

    You're trully a fenomenal teacher, Jake! I achieved to solve a problem I was facing through a expression that I wrote entirely myself, thanks to the logic you presented on this tutorial.

  • @Programmer_Cookbook
    @Programmer_Cookbook 10 месяцев назад

    Wow finally found some usefulness to my programming skills on animating. Thanks a lot Jake !

  • @dipteshpanchal5112
    @dipteshpanchal5112 6 лет назад +2

    Such a great n clear to learn expressions, waiting for more expressions tutorial

  • @celalettingirgic1977
    @celalettingirgic1977 Год назад

    Thanks Jake! Great lesson.

  • @muhammadbilalmemon271
    @muhammadbilalmemon271 4 года назад +1

    You know buddy, you are the best teacher, I found on entire internet. Check out his courses on Skillshare & School of Motion.

  • @brenna8517
    @brenna8517 6 лет назад +3

    Thanks a bunch! I'm just starting with AE expressions - your videos are super helpful!

  • @Edit-on
    @Edit-on 2 года назад

    Thank you Jake. Always You help me a lot.

  • @hedvig6746
    @hedvig6746 3 года назад

    well that was an epiphany. immensely grateful!

  • @AnanthaKrishnan1
    @AnanthaKrishnan1 2 года назад

    Thank You so much helpful - Love from India

  • @fliptopjim
    @fliptopjim 3 года назад

    THANK YOU! Keep forgetting the syntax so thank you for making this.

  • @gaston.
    @gaston. 3 года назад

    great logo Jake!

  • @estellebaylis6815
    @estellebaylis6815 5 лет назад

    Jake. You are a saviour! I've been trying to get something to work the last few hours and this worked. Genius!

  • @adegbengaojoyido550
    @adegbengaojoyido550 2 года назад

    Sir i love your teaching style truly you are the best i love you sir

    • @adegbengaojoyido550
      @adegbengaojoyido550 2 года назад

      please si don`t know is given me an error when i put the code sir maybe i made mistake. (var checkbox = effect.(“Checkbox Control”)(check box);
      if(checkbox == checked1){
      100;
      }otherwise{
      }else{
      0;
      }

    • @JakeInMotion
      @JakeInMotion  2 года назад +1

      Almost! Take a look at the code after I've typed it all out, pause the video and then copy it. You were typing out what I speaking literally, but I was just trying to translate the code into plain English to make it clearer.

  • @entopticmedia
    @entopticmedia 2 года назад

    IF/THEN/ELSE loops - haven't thought about that since Dorazio's Structured Program Design days at college lol

  • @Eyeshotify
    @Eyeshotify 4 года назад

    Great teacher. Your approach and obvious aforethought put in, really helped me understand the expressions, not only for aftereffects but in my grasp of javascript as well. Definite sub and thanks a lot.

  • @nseriously2704
    @nseriously2704 5 лет назад +1

    Thank u, Jake! U are making a great job! We appreciate! Keep it up! we need your tutorials!

  • @jpbrach
    @jpbrach 6 лет назад +4

    Great man! Could you do a tutorial about the "for" expression? Great channel men, New sub from Argentina.

  • @karlamata7421
    @karlamata7421 5 лет назад

    i applaud you!! after all this years i been trying to learn some code never really got it until i started using after effects and this DID indeed open of a whole new level to my work thank u thank u.. im looking forward to learning more expressions from you!

  • @CamilleDeBastiani
    @CamilleDeBastiani 5 лет назад

    Incredibly useful. Love your channel man!

  • @saibo-media
    @saibo-media 2 года назад

    even in 2022 still helpfull! 🔥

  • @ramil2733
    @ramil2733 5 лет назад

    Amazing video! A exciting and time saver expression to create a narrative style animation 😌

  • @mini-studio
    @mini-studio 3 года назад

    Perfect, thanks

  • @nicolebry1120
    @nicolebry1120 4 года назад

    Another excellent tutorial! Great work!!

  • @SOM_-sy6pv
    @SOM_-sy6pv 3 года назад

    just can say "Wowwwwwww..."!!!
    Thanx!

  • @stvfunmotion
    @stvfunmotion 2 года назад

    thanks jake

  • @MamunsLife
    @MamunsLife 6 лет назад

    Keep 'em coming Jake! You're killing it!! :D

  • @nutthapattkongpasutha8295
    @nutthapattkongpasutha8295 3 года назад

    Thank You, Jake.

  • @abhishekbuddhawar8991
    @abhishekbuddhawar8991 6 лет назад

    Hey Jake...great info as always...lots of thanks..

  • @marwanmassoud7198
    @marwanmassoud7198 2 года назад

    Cache memory issue. I think I found the solution for this problem. Thanks anyway.

  • @nirwe28
    @nirwe28 6 лет назад +1

    Very helpful!! Can you please tell how did you do the text at the start of the video?

  • @hanklermaimages9793
    @hanklermaimages9793 2 года назад

    Hi Jake, Its great you are explaining the expressions. Questions: Who is checking the checkbox? And Why? Is this for survey videos or exams?

  • @Kinho88
    @Kinho88 6 лет назад

    Just discovered your channel. Amazing !!!! Thank you very much and go on on this great job ! ;)

  • @jamalal-sallami6569
    @jamalal-sallami6569 4 года назад

    Keep going dude. Thanks a lot

  • @Tackleboys
    @Tackleboys 6 лет назад

    Keep rocking it Jake! I love your videos, inspiring me to create some of my own motion graphics :)

  • @sameernautiyal
    @sameernautiyal 6 лет назад

    jake you are a lifesaver! I always wonder About ae scripts so that's why I start learning processing 3 you same me from unnecessary timewasters, thanks for teaching AE expressions :)

  • @m.a8735
    @m.a8735 2 года назад +1

    Hey Jake, thank you so much for the very concise lesson! I have a question, at: 14:09 is there anyway to make the change in opacity "Eased" instead of suddenly becoming 0? Like once it goes to 90 it starts to gradually disappear instead of the "on/off" behavior it does.

  • @MrG2EK
    @MrG2EK Год назад

    quick question so i have a bunch of checkboxes to control the opacity of different elements, i'm trying to do a master checkbox that if turned on would bring the opacity of everything to 100 but if turned off would default to individual settings (basically it would ignore instead of switching off) i don't know if that was clear but i'd love some help on that

  • @plasmasoftware
    @plasmasoftware 2 года назад

    Tio eres la ostiaa! GRACIAS

  • @agaw-tvvhsarong9853
    @agaw-tvvhsarong9853 5 лет назад

    great tutorial

  • @riccardofissore7996
    @riccardofissore7996 29 дней назад

    I want to give 2 conditions and I can't figure out how, I have a dropdown menu toglling the visibility of text (title and subtitle), in the dropdown menu controller I want to give 3 possibilities like: title, subtitle, title+subtitle . I thought I was going to be able to says if dropdownmenu==1 or 3 than show the title otherwise don't show the title but I can't. I found that to say or you write || but it seems it can work only with variables not we the value of the variables so I can say if a || b are == a value then do something and not if a == x || y then do something

    • @riccardofissore7996
      @riccardofissore7996 29 дней назад

      i solved with != and then following the video I also managed to use || as I wanted but I don't understand why before it wasn't working

  • @milagro2300
    @milagro2300 6 лет назад

    Man you are amazing. Thanks for share.

  • @umpoucodetudo4940
    @umpoucodetudo4940 Год назад

    I dont really know if I did something wrong...but after effects is always returning false to this following condition. Does anyone have an idea why ?
    Basically the variables are colors and I want to make something moves always when the color gets green. (Note: I have keyframes changing the value of the colors between red and green)
    trafficLight = thisComp.layer("Shape Layer 1").effect("semaforo")("Color");
    color = effect("green")("Color");
    if(trafficLight==color){
    540
    }else{
    time*100
    }

  • @marwanmassoud7198
    @marwanmassoud7198 2 года назад

    var r = transform.rotation;
    var s = transform.scale;
    if(r > 90 && s > 50){
    100;
    }else{
    0;
    };
    I did try it but it's not changing the opacity, is there anything wrong with it. Please help, thanks in regard.

  • @LongerTomTV
    @LongerTomTV 6 лет назад

    This is so helpfull, thank you sir!

  • @smilexnl
    @smilexnl 2 года назад

    Hi, I'm really enjoying your channel, great work! Just a question: is there a way to list which layers, effects, etc. are referencing the checkbox?

  • @akeemcrossley6832
    @akeemcrossley6832 5 лет назад

    Thanks Alot

  • @user-rl6lo1zf7f
    @user-rl6lo1zf7f 4 года назад

    in cc19 has an error ,I need return an value for expressions. like this:
    var r = transform.rotation;100;
    if(r

  • @TheSTallINNA
    @TheSTallINNA Год назад

    @Jake In Motion do you have any tutorial about "for" or "while" functions or can you please link me a video, that explains syntax and structure of those functions?

    • @JakeInMotion
      @JakeInMotion  Год назад +1

      ruclips.net/video/SG3NyHmfc0s/видео.html

    • @TheSTallINNA
      @TheSTallINNA Год назад

      @@JakeInMotion Thank you so much

  • @graphic-nations
    @graphic-nations 4 года назад

    amazing, i need expression to control flicker opacity and stop it in certain time i wish you help me

  • @marnofranck6204
    @marnofranck6204 4 года назад

    Hi, PLEASE HELP!
    I have a progress meter in my project where I want to change the color based on where the value of the meter is.
    I'm using the Slider Controller on a Null object to control the progress meter.
    If the Meter/Slider is less than 40 then the progress bar is green, if it's above and between 40 and 80 it's orange, and above 80, it's red. Please help.

  • @SupunLankage
    @SupunLankage 5 лет назад

    superb man !

  • @ColorMagicPictures
    @ColorMagicPictures 3 года назад

    Is After Effects expression it's own programing language?
    Or does it use some other language for example in Blender you can make drivers and expressions using Python

  • @sondoshussein373
    @sondoshussein373 6 лет назад

    Wow thanks for your sharing
    Jack I am very much accused of moving your channel logo. Can you explain how you have done this?

  • @karlamata7421
    @karlamata7421 5 лет назад

    please help i tried to add an expression in the scale property similar to the one you did with a checkbox control in the layer ..i want the scale to change when check box is on,,, i keep getting an error say dimension requires 2 not 1 or something like that.. i tried to put (100,100); instead of 100; but that didnt work any idea?

    • @JakeInMotion
      @JakeInMotion  5 лет назад

      You need to use square brackets [100,100], not parentheses (100,100).

  • @dublinphotoart
    @dublinphotoart 4 года назад

    I somehow eventually used this to delay a sleeve layer rotating with an arm layer only when the arm appears to make contact with the sleeve at either side, so beyond +9 and -13 the sleeve moves with the arm but when the arm is between those values the sleeve doesnt move. On sleeve rotate property it was something like this: if ARM layer is greater than 9 rotate with arm... else zero rotation... followed by: if ARM layer less than -13, rotate with arm. And thats it. No ending else statement. It doesnt seem like it should work but it does. Purely accidental! 🤷🏼‍♂️🤣

  • @Geemodrums
    @Geemodrums 6 лет назад

    hey man great vid, is there a way to interpolate the values?, ps: good luck on this new project!

    • @JakeInMotion
      @JakeInMotion  6 лет назад

      Thanks! Which values do you want to interpolate? If else statements are really just a way to choose between multiple expressions.

  • @danieladvertising
    @danieladvertising 6 лет назад

    Great tutorial, Thank you! how do you do the information frames where the text flows smoothly from line to line, Like when you explained the if/else stament in the orange type?

    • @JakeInMotion
      @JakeInMotion  6 лет назад +1

      Thank you! For the animation of the text appearing, I just used a text animator with the scale going from 0 to 100%. All of the other motion was just position keyframes.

  • @RosbeOne
    @RosbeOne 4 года назад

    hey, it won't work for me. The first step, it just doesn't work. Used the same code, even tried translating the "checkbox control" and "checkbox" in my softwares language, but it won't work. Meh :(

  • @springinspiring
    @springinspiring 4 года назад

    Love it!!!~

  • @dilawarhussain3773
    @dilawarhussain3773 3 года назад

    Like for the intro

  • @exxoncardozo
    @exxoncardozo 5 лет назад

    Hi, I would like to start by saying that your tutorials are really great and helpful, but better than your tutorials is your warm smile at the start of your videos.
    Having said that, I would appreciate it if you could help me with an issue I'm facing.
    I've followed the steps and the expression correctly, but I get a pop up saying:
    After effects warning: Expected: ;
    Expression disabled
    Error occured at line 1.
    Comp: 'clip 1'
    Layer: 2 ('Open')
    Property: 'Opacity'

    • @JakeInMotion
      @JakeInMotion  5 лет назад

      Thanks! Could you copy and paste the expression here so I can see it?

    • @exxoncardozo
      @exxoncardozo 5 лет назад

      Hi would it be possible for you to share your email id, so I can explain in detail regarding the issue I'm facing along with screenshots of the the error

    • @JakeInMotion
      @JakeInMotion  5 лет назад

      jake@jakeinmotion.com

  • @krishnamoorthyrkm
    @krishnamoorthyrkm 6 лет назад

    Good one Jake. How excited are you about going live on Adobe Creative Cloud channel in the coming week? What can we expect from that?

    • @JakeInMotion
      @JakeInMotion  6 лет назад +1

      I'm very excited! My 3 sessions will be centered around title design.

    • @krishnamoorthyrkm
      @krishnamoorthyrkm 6 лет назад

      That was awesome. I am about to take a project on title design. Will be very much helpful. Looking forward to it.

  • @izvarzone
    @izvarzone 4 года назад

    Is there case switch?

  • @sameernautiyal
    @sameernautiyal 6 лет назад

    Jake can you explanation! how animation composer work?

    • @JakeInMotion
      @JakeInMotion  6 лет назад

      The creator of Animation Composer has a lot of great tutorials on how to use the tool, check it out: support.misterhorse.tv/097179-Video-Tutorials

    • @sameernautiyal
      @sameernautiyal 6 лет назад

      Jake In Motion I mean I want to wright expressions for that kind of animation

  • @nseriously2704
    @nseriously2704 5 лет назад

    How to add indent? What shortcut? Thx!!

  • @drppgs
    @drppgs 6 лет назад

    if/else wow... cool shirt

    • @drppgs
      @drppgs 6 лет назад

      Hello Jake, I have question of how many kinds of var ?thing? = trransform. can be... I understand after= many times are parenting too. Thanks

    • @JakeInMotion
      @JakeInMotion  6 лет назад

      I'm not sure I understand your question. Are you asking what is allowed to be in an expression variable?

    • @krishnamoorthyrkm
      @krishnamoorthyrkm 6 лет назад

      I think he is referring to the keywords in expressions, Jake. He is asking what are other things like "var". Anting Chang you could google adobe expression guide for all the keywords you can use.

  • @leomass
    @leomass 6 лет назад

    👏

  • @DS-mh3gp
    @DS-mh3gp 4 года назад +1

    Why EVERYONE does if/else expression tutorials only with Opacity and Rotation, and no one does with Position or Scale? Opacity and Rotation are easy... and I still can't figure out how to do it with Position.

    • @izvarzone
      @izvarzone 4 года назад

      opacity, and rotation are scalar parameters. Position is vector, so you need do value[0] for x and value[1] for y (and value[2] for z if it's 3d layer)
      Final result should have format like [x,y]
      whereas for scalars it would be x (without square brackets)
      replace x and y with your variable names.