Handy Expressions for Blender Drivers

I've just delved into the world of drivers in Blender after a desire to control several aspects of my scene with one slider. Drivers in Blender let you use variables for values, so I can make a cube's forward/backward position related to another object's up/down position, for example. I found a great course on udemy called Mastering Drivers in Blender. So far I've gotten through the first two sections, but I've already identified some helpful expressions for drivers.

In these examples, N is my variable.


The above example is the base. It should speak for itself.

The next example helps convert 0 to 1, and 1 to 0. I've used this to make one value control two things that I want to swap, like a material's mix factor.


This example will keep a 0 a 0, but if the input is 1, you get a value you pick. This is helpful for lights or other object that have non 1 values.


Using what we've seen in the past two examples, we can make the opposite result of the example above. We can make the input of 0 give us a picked value, and a 1 give us 0.


That's all I've come up with so far, but I might have another update once I've gone through the rest of the udemy course.

Posted on: August 24, 2016