1
$\begingroup$

I would like to make the value of a node, say a blur node, influenced by the distance between two objects (say a camera and a cube) with blender render engine. How would you achieve that?

$\endgroup$
3
$\begingroup$

Yes, with Drivers

You can animate a property with a combination of values of other chosen properties.

To set up a Driver, just right click in the parameter field and choose "Add Driver"->"Manually create later" from the pop up menù. In the following example I added a "value" node and linked and added a driver to control it's value (the purple one), but I might have directly controlled the Size parameter of the Blur node itself:

enter image description here

In the Graph editor, under the Driver editor type, you can easily set up a Distance Driver Type and pick the two objects (camera and cube in the following example):

enter image description here

Here's the result:

enter image description here

$\endgroup$
  • $\begingroup$ This is exactly what I was looking for. Thank you very much! $\endgroup$ – Thibaut Nov 5 '17 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.