Это видео недоступно.
Сожалеем об этом.
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...
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.
Thank you so much! So glad you liked it!
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!
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.
I can't believe how well made this video is. Great Job Jake!!! you've helped so many people.
You're a great teacher! It's helpful that you go deeper giving us context for each thing. Thank you.
Jake, you are the best teacher of expression! It's too easy for understanding! I finally understood if and else conditional statement! Thank you!)
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!
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.
Success!
Wow finally found some usefulness to my programming skills on animating. Thanks a lot Jake !
Such a great n clear to learn expressions, waiting for more expressions tutorial
Thanks Jake! Great lesson.
You know buddy, you are the best teacher, I found on entire internet. Check out his courses on Skillshare & School of Motion.
True
Thanks a bunch! I'm just starting with AE expressions - your videos are super helpful!
Me too
Thank you Jake. Always You help me a lot.
well that was an epiphany. immensely grateful!
Thank You so much helpful - Love from India
THANK YOU! Keep forgetting the syntax so thank you for making this.
great logo Jake!
Jake. You are a saviour! I've been trying to get something to work the last few hours and this worked. Genius!
Sir i love your teaching style truly you are the best i love you sir
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;
}
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.
IF/THEN/ELSE loops - haven't thought about that since Dorazio's Structured Program Design days at college lol
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.
Thank u, Jake! U are making a great job! We appreciate! Keep it up! we need your tutorials!
Great man! Could you do a tutorial about the "for" expression? Great channel men, New sub from Argentina.
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!
Incredibly useful. Love your channel man!
even in 2022 still helpfull! 🔥
Amazing video! A exciting and time saver expression to create a narrative style animation 😌
Perfect, thanks
Another excellent tutorial! Great work!!
just can say "Wowwwwwww..."!!!
Thanx!
thanks jake
Keep 'em coming Jake! You're killing it!! :D
Thank You, Jake.
Hey Jake...great info as always...lots of thanks..
Cache memory issue. I think I found the solution for this problem. Thanks anyway.
Very helpful!! Can you please tell how did you do the text at the start of the video?
Hi Jake, Its great you are explaining the expressions. Questions: Who is checking the checkbox? And Why? Is this for survey videos or exams?
Just watched you dissect a template. Got it.
Just discovered your channel. Amazing !!!! Thank you very much and go on on this great job ! ;)
Keep going dude. Thanks a lot
Keep rocking it Jake! I love your videos, inspiring me to create some of my own motion graphics :)
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 :)
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.
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
Tio eres la ostiaa! GRACIAS
great tutorial
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
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
Man you are amazing. Thanks for share.
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
}
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.
This is so helpfull, thank you sir!
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?
Thanks Alot
in cc19 has an error ,I need return an value for expressions. like this:
var r = transform.rotation;100;
if(r
@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?
ruclips.net/video/SG3NyHmfc0s/видео.html
@@JakeInMotion Thank you so much
amazing, i need expression to control flicker opacity and stop it in certain time i wish you help me
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.
superb man !
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
Wow thanks for your sharing
Jack I am very much accused of moving your channel logo. Can you explain how you have done this?
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?
You need to use square brackets [100,100], not parentheses (100,100).
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! 🤷🏼♂️🤣
hey man great vid, is there a way to interpolate the values?, ps: good luck on this new project!
Thanks! Which values do you want to interpolate? If else statements are really just a way to choose between multiple expressions.
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?
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.
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 :(
Love it!!!~
Like for the intro
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'
Thanks! Could you copy and paste the expression here so I can see it?
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
jake@jakeinmotion.com
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?
I'm very excited! My 3 sessions will be centered around title design.
That was awesome. I am about to take a project on title design. Will be very much helpful. Looking forward to it.
Is there case switch?
Jake can you explanation! how animation composer work?
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
Jake In Motion I mean I want to wright expressions for that kind of animation
How to add indent? What shortcut? Thx!!
Tab on the keyboard
if/else wow... cool shirt
Hello Jake, I have question of how many kinds of var ?thing? = trransform. can be... I understand after= many times are parenting too. Thanks
I'm not sure I understand your question. Are you asking what is allowed to be in an expression variable?
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.
👏
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.
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.