How to invert value in Controller?

To talk about brush creation and controllers
poniu
 
Posts: 4
Joined: 06 Dec 2012, 17:21

How to invert value in Controller?

Postby poniu » 06 Dec 2012, 23:57

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?

User avatar
u2bleank
 
Posts: 1182
Joined: 11 Jun 2012, 10:41

Re: How to invert value in Controller?

Postby u2bleank » 07 Dec 2012, 09:23

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 ;)

poniu
 
Posts: 4
Joined: 06 Dec 2012, 17:21

Re: How to invert value in Controller?

Postby poniu » 07 Dec 2012, 14:05

I got it. Thanks! :)


Return to Brush Making

cron