2
$\begingroup$

I'm trying to set up a facial rig, and I want to control each eyelid with a control object, or both using a slider.

I have set up a simplified example where a slider moves both eyelids together. How do I set it up so I can also move the controls to move each eyelid?

I'm thinking that it should use the maximum input of either the eye controls or the slider. I also experimented with custom values, but didn't quite get it.

In my actual project it uses shape keys to close the eye lids, but the principle should be the same as this example.

Here's the blend file:

And here's what the example looks like: enter image description here

$\endgroup$
3
  • $\begingroup$ I don't get the point. If max or average value do not correspond to want you want, what is expected here? $\endgroup$
    – lemon
    Feb 24 '17 at 10:42
  • $\begingroup$ I didn't realise you could add multiple values, but when I did I can't combine the slider going down (from 1 to 0), and the lower control going up (from 0 to 1). I can't get either maximum or minimum in that case. So I'm now trying to set it up using scripted expression instead. $\endgroup$
    – Niclas
    Feb 24 '17 at 14:15
  • $\begingroup$ Yes with an expression, you can combine the several 'var' obtained from several objects $\endgroup$
    – lemon
    Feb 24 '17 at 14:22
3
$\begingroup$

I got it working like I wanted to:

enter image description here

Upper eyelid

Just add both values (slider and ctrl_up) as variables and use Type: Minimum Value, since they are going from positive to negative and we want the smallest one.

enter image description here

Lower eyelid

Just add both values (slider and ctrl_down) but use Type: Scripted expression, and invert var2, so when it moves up, it still gives a negative number.

enter image description here

Here's the final blend:

Hope this helps someone with understanding drivers!

$\endgroup$

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.