Page 1 of 1

How to invert value in Controller?

PostPosted: 06 Dec 2012, 23:57
by poniu
Playing with controller editor now. It's awesome but I don't know how to invert value. I tried multiplying by -1 but this didn't work that way. For example I want to press pen harder and get small dot with maximum opacity and big dot with minimum opacity when drawing softly. How to do this?

Re: How to invert value in Controller?

PostPosted: 07 Dec 2012, 09:23
by u2bleank
hi poniu,

You can have a look on this tutorial who make what you want.

:geek:
In substance controller are drived by a value included in a range of [0..1].
If you invert your presssure you will got [-1..0] who will be clamped to 0 and generated no effect at all, so you need to Add 1 to your result to retrieve the valid range [0..1]
In your case :
ControlledValue = 1 - Pressure

This can be directly achieved by the Sub operator when you plug your pressure on Input B and set 1 in input A
Image

Hope this help ;)

Re: How to invert value in Controller?

PostPosted: 07 Dec 2012, 14:05
by poniu
I got it. Thanks! :)