From the course: NUKE NUGGETS

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

048 How to use conditionals for more control

048 How to use conditionals for more control - Nuke Tutorial

From the course: NUKE NUGGETS

048 How to use conditionals for more control

- [Steve] Hi, this is Steve Wright, welcoming you to this week's Nuke Nugget: how to add and if-then-else conditional test to your math expressions. In Episode 31, we learned about adding math expressions to control node parameters, but, sometimes, you need to say something like, on frame 10, switch to another clip. For this, you need an if-then-else conditional statement. So let's cruise over here and pop in on this backdrop node. In the world of programming, a conditional test is to see if a particular condition is true. For example, is the frame number greater than 10, or is the translate x value less than 100? The frame number and translate x values are the conditions of the test. If the test is true, then the true action is taken. If the test is false, then the false action is taken. So here, we have a conditional test, followed by a question mark. That's the if part of our conditional. Following that is the action to be taken if it's true, that's the then part. And then…

Contents