if/else Conditional Statements | After Effects Expressions

  Рет қаралды 44,602

Jake In Motion

Jake In Motion

Күн бұрын

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

Пікірлер: 101
@葉家豪-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.
@lukeleisner8333
@lukeleisner8333 6 жыл бұрын
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 жыл бұрын
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!
@caiobernspereira
@caiobernspereira 2 жыл бұрын
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.
@JakeInMotion
@JakeInMotion 2 жыл бұрын
Success!
@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!)
@mediocreape
@mediocreape Жыл бұрын
I can't believe how well made this video is. Great Job Jake!!! you've helped so many people.
@ThatMelaninLife
@ThatMelaninLife 2 жыл бұрын
You're a great teacher! It's helpful that you go deeper giving us context for each thing. Thank you.
@Kryptoniano-n6m
@Kryptoniano-n6m Жыл бұрын
Wow finally found some usefulness to my programming skills on animating. Thanks a lot Jake !
@hedvig6746
@hedvig6746 3 жыл бұрын
well that was an epiphany. immensely grateful!
@jpegweber
@jpegweber 6 жыл бұрын
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!
@dipteshpanchal5112
@dipteshpanchal5112 6 жыл бұрын
Such a great n clear to learn expressions, waiting for more expressions tutorial
@ZoneBBB
@ZoneBBB 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.
@MBMZIR
@MBMZIR 4 жыл бұрын
You know buddy, you are the best teacher, I found on entire internet. Check out his courses on Skillshare & School of Motion.
@AnanthaKrishnan1
@AnanthaKrishnan1 3 жыл бұрын
True
@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!
@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!
@celalettingirgic1977
@celalettingirgic1977 2 жыл бұрын
Thanks Jake! Great lesson.
@CamilleDeBastiani
@CamilleDeBastiani 6 жыл бұрын
Incredibly useful. Love your channel man!
@brenna8517
@brenna8517 6 жыл бұрын
Thanks a bunch! I'm just starting with AE expressions - your videos are super helpful!
@AnanthaKrishnan1
@AnanthaKrishnan1 3 жыл бұрын
Me too
@nseriously2704
@nseriously2704 6 жыл бұрын
Thank u, Jake! U are making a great job! We appreciate! Keep it up! we need your tutorials!
@fliptopjim
@fliptopjim 3 жыл бұрын
THANK YOU! Keep forgetting the syntax so thank you for making this.
@adegbengaojoyido550
@adegbengaojoyido550 3 жыл бұрын
Sir i love your teaching style truly you are the best i love you sir
@adegbengaojoyido550
@adegbengaojoyido550 3 жыл бұрын
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 3 жыл бұрын
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.
@Edit-on
@Edit-on 2 жыл бұрын
Thank you Jake. Always You help me a lot.
@nicolebry1120
@nicolebry1120 5 жыл бұрын
Another excellent tutorial! Great work!!
@MamunsLife
@MamunsLife 6 жыл бұрын
Keep 'em coming Jake! You're killing it!! :D
@AnanthaKrishnan1
@AnanthaKrishnan1 3 жыл бұрын
Thank You so much helpful - Love from India
@ramil2733
@ramil2733 5 жыл бұрын
Amazing video! A exciting and time saver expression to create a narrative style animation 😌
@abhishekbuddhawar8991
@abhishekbuddhawar8991 6 жыл бұрын
Hey Jake...great info as always...lots of thanks..
@entopticmedia
@entopticmedia 2 жыл бұрын
IF/THEN/ELSE loops - haven't thought about that since Dorazio's Structured Program Design days at college lol
@nutthapattkongpasutha8295
@nutthapattkongpasutha8295 4 жыл бұрын
Thank You, Jake.
@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?
@hanklermaimages9793
@hanklermaimages9793 2 жыл бұрын
Just watched you dissect a template. Got it.
@jamalal-sallami6569
@jamalal-sallami6569 5 жыл бұрын
Keep going dude. Thanks a lot
@jpbrach
@jpbrach 6 жыл бұрын
Great man! Could you do a tutorial about the "for" expression? Great channel men, New sub from Argentina.
@Tackleboys
@Tackleboys 6 жыл бұрын
Keep rocking it Jake! I love your videos, inspiring me to create some of my own motion graphics :)
@Kinho88
@Kinho88 6 жыл бұрын
Just discovered your channel. Amazing !!!! Thank you very much and go on on this great job ! ;)
@mini-studio
@mini-studio 3 жыл бұрын
Perfect, thanks
@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 :)
@nirwe28
@nirwe28 6 жыл бұрын
Very helpful!! Can you please tell how did you do the text at the start of the video?
@alideep9656
@alideep9656 2 ай бұрын
Thank you.
@milagro2300
@milagro2300 6 жыл бұрын
Man you are amazing. Thanks for share.
@m.a8735
@m.a8735 2 жыл бұрын
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.
@agaw-tvvhsarong9853
@agaw-tvvhsarong9853 6 жыл бұрын
great tutorial
@kevinpatrickgoebel7073
@kevinpatrickgoebel7073 2 ай бұрын
the best bro
@SOM_-sy6pv
@SOM_-sy6pv 4 жыл бұрын
just can say "Wowwwwwww..."!!! Thanx!
@saibo-media
@saibo-media 2 жыл бұрын
even in 2022 still helpfull! 🔥
@marwanmassoud7198
@marwanmassoud7198 3 жыл бұрын
Cache memory issue. I think I found the solution for this problem. Thanks anyway.
@smilexnl
@smilexnl 3 жыл бұрын
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?
@stvfunmotion
@stvfunmotion 2 жыл бұрын
thanks jake
@SupunLankage
@SupunLankage 6 жыл бұрын
superb man !
@LongerTomTV
@LongerTomTV 6 жыл бұрын
This is so helpfull, thank you sir!
@plasmasoftware
@plasmasoftware 2 жыл бұрын
Tio eres la ostiaa! GRACIAS
@akeemcrossley6832
@akeemcrossley6832 5 жыл бұрын
Thanks Alot
@graphic-nations
@graphic-nations 4 жыл бұрын
amazing, i need expression to control flicker opacity and stop it in certain time i wish you help me
@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?
@exxoncardozo
@exxoncardozo 6 жыл бұрын
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 6 жыл бұрын
Thanks! Could you copy and paste the expression here so I can see it?
@exxoncardozo
@exxoncardozo 6 жыл бұрын
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 6 жыл бұрын
jake@jakeinmotion.com
@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
@springinspiring
@springinspiring 5 жыл бұрын
Love it!!!~
@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 Жыл бұрын
kzbin.info/www/bejne/iXiWf6x-osuWZtU
@TheSTallINNA
@TheSTallINNA Жыл бұрын
@@JakeInMotion Thank you so much
@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! 🤷🏼‍♂️🤣
@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
@izvarzone
@izvarzone 5 жыл бұрын
Is there case switch?
@ritchspace
@ritchspace 2 жыл бұрын
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 }
@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 жыл бұрын
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.
@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.
@riccardofissore7996
@riccardofissore7996 6 ай бұрын
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 6 ай бұрын
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
@于晨浩-r7i
@于晨浩-r7i 4 жыл бұрын
in cc19 has an error ,I need return an value for expressions. like this: var r = transform.rotation;100; if(r
@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.
@dilawarhussain3773
@dilawarhussain3773 3 жыл бұрын
Like for the intro
@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 жыл бұрын
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.
@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).
@nseriously2704
@nseriously2704 6 жыл бұрын
How to add indent? What shortcut? Thx!!
@JakeInMotion
@JakeInMotion 6 жыл бұрын
Tab on the keyboard
@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
@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 жыл бұрын
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.
linear(); | After Effects Expressions
18:02
Jake In Motion
Рет қаралды 50 М.
sourceRectAtTime(); | After Effects Expressions
34:33
Jake In Motion
Рет қаралды 138 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
15 After Effects Tricks Most Pros Don't Know
4:18
Ben Marriott
Рет қаралды 222 М.
CHEAT Codes in AFTER EFFECTS? 5 Expressions You MUST Know!
9:07
Cinecom.net
Рет қаралды 221 М.
You NEED to be using Null Objects in After Effects
14:57
Jake In Motion
Рет қаралды 148 М.
Intro to After Effects Expression
19:20
School of Motion
Рет қаралды 212 М.
Math.sin - Adobe After Effects Expression
13:28
ECAbrams
Рет қаралды 185 М.
ChatGPT For After Effects | AI Writes Expressions For Me
7:00
Nijat Ibrahimli
Рет қаралды 17 М.
Top 10 After Effects Expressions for Amazing Motion Design
12:13
Ben Marriott
Рет қаралды 292 М.
I Made a Donut in Every Version of Blender
11:31
Noggi
Рет қаралды 540 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 7 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН