if/else Conditional Statements | After Effects Expressions

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 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!

  • @葉家豪-n8j
    @葉家豪-n8j Рік тому

    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.

  • @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!

  • @ThatMelaninLife
    @ThatMelaninLife 2 роки тому

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

  • @hedvig6746
    @hedvig6746 3 роки тому

    well that was an epiphany. immensely grateful!

  • @Scriptum_1
    @Scriptum_1 Рік тому

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

  • @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.

  • @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!)

  • @celalettingirgic1977
    @celalettingirgic1977 2 роки тому

    Thanks Jake! Great lesson.

  • @fliptopjim
    @fliptopjim 3 роки тому

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

  • @dipteshpanchal5112
    @dipteshpanchal5112 6 років тому +2

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

  • @Edit-on
    @Edit-on 2 роки тому

    Thank you Jake. Always You help me a lot.

  • @mediocreape
    @mediocreape Рік тому

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

  • @brenna8517
    @brenna8517 6 років тому +3

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

  • @entopticmedia
    @entopticmedia 2 роки тому

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

  • @AnanthaKrishnan1
    @AnanthaKrishnan1 3 роки тому

    Thank You so much helpful - Love from India

  • @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.

  • @nirwe28
    @nirwe28 6 років тому +1

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

  • @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!

  • @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.

  • @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.

  • @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!

  • @jpegweber
    @jpegweber 6 років тому +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!

  • @nseriously2704
    @nseriously2704 6 років тому +1

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

  • @nutthapattkongpasutha8295
    @nutthapattkongpasutha8295 4 роки тому

    Thank You, Jake.

  • @jpbrach
    @jpbrach 6 років тому +4

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

  • @nicolebry1120
    @nicolebry1120 5 років тому

    Another excellent tutorial! Great work!!

  • @mini-studio
    @mini-studio 3 роки тому

    Perfect, thanks

  • @ramil2733
    @ramil2733 5 років тому

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

  • @CamilleDeBastiani
    @CamilleDeBastiani 5 років тому

    Incredibly useful. Love your channel man!

  • @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.

  • @alideep9656
    @alideep9656 4 дні тому

    Thank you.

  • @abhishekbuddhawar8991
    @abhishekbuddhawar8991 6 років тому

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

  • @jamalal-sallami6569
    @jamalal-sallami6569 5 років тому

    Keep going dude. Thanks a lot

  • @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?

  • @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?

  • @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?

  • @agaw-tvvhsarong9853
    @agaw-tvvhsarong9853 6 років тому

    great tutorial

  • @MrG2EK
    @MrG2EK 2 роки тому

    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

  • @stvfunmotion
    @stvfunmotion 2 роки тому

    thanks jake

  • @SOM_-sy6pv
    @SOM_-sy6pv 4 роки тому

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

  • @MamunsLife
    @MamunsLife 6 років тому

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

  • @saibo-media
    @saibo-media 2 роки тому

    even in 2022 still helpfull! 🔥

  • @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 :)

  • @milagro2300
    @milagro2300 6 років тому

    Man you are amazing. Thanks for share.

  • @Kinho88
    @Kinho88 6 років тому

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

  • @LongerTomTV
    @LongerTomTV 6 років тому

    This is so helpfull, thank you sir!

  • @graphic-nations
    @graphic-nations 4 роки тому

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

  • @plasmasoftware
    @plasmasoftware 2 роки тому

    Tio eres la ostiaa! GRACIAS

  • @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

      ua-cam.com/video/SG3NyHmfc0s/v-deo.html

    • @TheSTallINNA
      @TheSTallINNA Рік тому

      @@JakeInMotion Thank you so much

  • @marwanmassoud7198
    @marwanmassoud7198 3 роки тому

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

  • @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.

  • @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.

  • @Tackleboys
    @Tackleboys 6 років тому

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

  • @SupunLankage
    @SupunLankage 6 років тому

    superb man !

  • @akeemcrossley6832
    @akeemcrossley6832 5 років тому

    Thanks Alot

  • @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.

  • @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! 🤷🏼‍♂️🤣

  • @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.

  • @riccardofissore7996
    @riccardofissore7996 4 місяці тому

    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 4 місяці тому

      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

  • @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

  • @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
    }

  • @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).

  • @于晨浩-r7i
    @于晨浩-r7i 4 роки тому

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

  • @marwanmassoud7198
    @marwanmassoud7198 3 роки тому

    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.

  • @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

  • @springinspiring
    @springinspiring 4 роки тому

    Love it!!!~

  • @izvarzone
    @izvarzone 5 років тому

    Is there case switch?

  • @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

  • @dilawarhussain3773
    @dilawarhussain3773 3 роки тому

    Like for the intro

  • @nseriously2704
    @nseriously2704 6 років тому

    How to add indent? What shortcut? Thx!!

  • @RosbeOne
    @RosbeOne 5 років тому

    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 :(

  • @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 5 років тому +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 5 років тому

      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.