Page 1 of 1
Mask 2 objects at the same time

Posted:
Sat Dec 25, 2021 10:36 pm
by MarvinBarre
Hello, Could you help me to mask 2 objects at the same time with 1 mask.?
I have a blue and a white rectangle.
I would like to mask them with a rectangle mask.
I know how to mask each individually but I can't figure out how to mask 2 of them at the same time with one mask only.
Thank you .
Re: Mask 2 objects at the same time

Posted:
Sun Dec 26, 2021 1:42 am
by xunile
If you would like to mask them after they have been merged, then add a Brightness/Contrast node after the Merge node, enable the alpha and turn down the gain. Connect your mask to the Brightness/Contrast node and you will have your one mask.
Re: Mask 2 objects at the same time

Posted:
Sun Dec 26, 2021 7:27 am
by MarvinBarre
Thanks , I found a one more way .
Is there anything wrong doing it like I did?
I didn't know you could connect one mask to 2 merges like this.
I just tried it and it worked.
Re: Mask 2 objects at the same time

Posted:
Mon Dec 27, 2021 10:27 am
by Hendrik Proosa
MarvinBarre wrote:Thanks , I found a one more way .
Is there anything wrong doing it like I did?
I didn't know you could connect one mask to 2 merges like this.
I just tried it and it worked.
This is one of the reasons why nodegraph is good. You just discovered one of the fundamental properties: node can be connected to inputs of other nodes any number of times.