Invert Mask Option

67 views
Skip to first unread message

omar brown

unread,
Jun 24, 2014, 10:48:03 AM6/24/14
to Natro...@googlegroups.com
Can we get the option to invert the mask inputs in the color correction and grade nodes. In is available on the merge node. This can help keep the node graph area cleaner without a lot of nodes to do a simple tasks.

Alexandre

unread,
Jun 24, 2014, 10:51:04 AM6/24/14
to omar brown, Natro...@googlegroups.com
We did it in the past, but we removed it , this is not technically possible because of the way OpenFX is designed. The best you can do is plug an invert node in-between.


On Jun 24, 2014, at 4:48 PM, omar brown <vegas...@gmail.com> wrote:

> Can we get the option to invert the mask inputs in the color correction and grade nodes. In is available on the merge node. This can help keep the node graph area cleaner without a lot of nodes to do a simple tasks.
>
> --
> You received this message because you are subscribed to the Google Groups "Natron" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to Natron-VFX+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Frédéric Devernay

unread,
Jun 24, 2014, 10:51:59 AM6/24/14
to Alexandre Gauthier-Foichat, omar brown, Natro...@googlegroups.com
Yes, it is possible -> next version

Frédéric Devernay

unread,
Jun 24, 2014, 11:46:44 AM6/24/14
to Alexandre Gauthier-Foichat, omar brown, Natro...@googlegroups.com
just added it to:
- ColorCorrect
- Grade
- Invert
- Merge
- TransformMasked
- CornerPinMasked

see https://github.com/devernay/openfx-misc/commit/0e3b9566bcbc662cece65b987fa91059305e897f

mackd...@gmail.com

unread,
Jun 24, 2014, 1:43:20 PM6/24/14
to Natro...@googlegroups.com, immar...@gmail.com, vegas...@gmail.com, frederic...@inria.fr
These are great, but useful option would be for the Invert node to work with a mask. For example, I have a roto. I plugged in an Invert node after it, and the alpha did not invert. That would be amazingly useful if that worked. Inverting rotos/mattes/channels is happening all the time in compositing.

Vegas Editor

unread,
Jun 24, 2014, 1:58:11 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, immar...@gmail.com, frederic...@inria.fr
Also while using the invert mask option, I think you should have the ability to premultiply and unpremultiply the inverted matte. Better yet, have the ability to allow each node with mask inputs to be able to inject the alpha channel downstream.

This is your season
Omar Brown
Blessed House Media

Frédéric Devernay

unread,
Jun 24, 2014, 2:00:06 PM6/24/14
to mackd...@gmail.com, omar brown, immar...@gmail.com, frederic...@inria.fr, Natro...@googlegroups.com

The invert nodes has parameters. You can invert alpha with it.
Anyway, almost all nodes using masks can now optionally invert the mask

Frédéric Devernay

unread,
Jun 24, 2014, 2:11:22 PM6/24/14
to omar brown, Natro...@googlegroups.com, immar...@gmail.com, frederic...@inria.fr, mackd...@gmail.com

Premult and unpremult nodes are in the upcoming release.
We could add a "RGB is premultiplied" check box to invert, but I' m afraid it would lead to cases that are difficult to handle (eg what happens if you invert alpha on a premultiplied image)
I think it' s better to explicitly use unpremult/premult in that case

Fred

mackd...@gmail.com

unread,
Jun 24, 2014, 2:17:06 PM6/24/14
to Natro...@googlegroups.com, mackd...@gmail.com, vegas...@gmail.com, immar...@gmail.com, frederic...@inria.fr
It's not working for me. An invert node after a roto node only shows a black alpha. The "inverted" button in the roto node itself works, however.

Vegas Editor

unread,
Jun 24, 2014, 2:36:33 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, immar...@gmail.com, frederic...@inria.fr
What is the output of the roto node set to? Is it set to alpha or RGB?

This is your season
Omar Brown
Blessed House Media

mackd...@gmail.com

unread,
Jun 24, 2014, 2:39:23 PM6/24/14
to Natro...@googlegroups.com, mackd...@gmail.com, immar...@gmail.com, frederic...@inria.fr
I've tried both, neither works.

Vegas Editor

unread,
Jun 24, 2014, 2:41:10 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, immar...@gmail.com, frederic...@inria.fr
Can you provide a screen shot of what you are trying to do?

This is your season
Omar Brown
Blessed House Media

On Jun 24, 2014, at 2:39 PM, mackd...@gmail.com wrote:

I've tried both, neither works.

--
You received this message because you are subscribed to a topic in the Google Groups "Natron" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/Natron-VFX/bld3qmQSZMU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to Natron-VFX+...@googlegroups.com.

mackd...@gmail.com

unread,
Jun 24, 2014, 2:56:11 PM6/24/14
to Natro...@googlegroups.com, mackd...@gmail.com, immar...@gmail.com, frederic...@inria.fr
Sure thing. Here is a normal roto.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_01.jpg

Here it is inverted using the button in the roto node itself. Works great!
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_02.jpg

Here it is using the invert node instead of the checkbox. I was thinking it would be the exact same result.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_03.jpg

And just to be sure, I clicked the alpha button on the invert node, too.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_04.jpg

Sean Kennedy

unread,
Jun 24, 2014, 3:26:57 PM6/24/14
to Alexandre, Sean's Gmail, natro...@googlegroups.com
Hmm, still not working for me. Maybe it's a Windows thing.


Subject: Re: Invert Mask Option
From: immar...@gmail.com
Date: Tue, 24 Jun 2014 21:03:06 +0200
CC: Natro...@googlegroups.com
To: mackd...@gmail.com

This is maybe a cache issue. Try clearing the cache from the cache menu (click clear memory + disk cache). 
Here is a screenshot of a similar graph (though with the current dev version of Natron, maybe it has fixed something):

Omar Brown

unread,
Jun 24, 2014, 3:43:12 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, immar...@gmail.com, frederic...@inria.fr
try an see if you only have the alpha checked and the rgb unchecked both was with the roto output being rgb or alpha. It seems to me that the Invert node is canceling out the the roto node alpha output. it could be an issue with the premultiplying of the alpha output of the roto and premultiplying again on the invert. I am not a coder and I can be wrong.

Alexandre

unread,
Jun 24, 2014, 3:03:12 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com
This is maybe a cache issue. Try clearing the cache from the cache menu (click clear memory + disk cache). 
Here is a screenshot of a similar graph (though with the current dev version of Natron, maybe it has fixed something):
On Jun 24, 2014, at 8:56 PM, mackd...@gmail.com wrote:

Omar Brown

unread,
Jun 24, 2014, 3:57:17 PM6/24/14
to Sean Kennedy, Alexandre, Sean's Gmail, natro...@googlegroups.com
I had reproduced your script layout and I get the same results, Sean.  By the way, what graphics card are you using and does it fully comply with GPU requirements.  That might be the reason. My card’s kernel is old as the first grain of dirt.

On Jun 24, 2014, at 3:26 PM, Sean Kennedy <mack_...@hotmail.com> wrote:

Hmm, still not working for me. Maybe it's a Windows thing.


Subject: Re: Invert Mask Option
From: immar...@gmail.com
Date: Tue, 24 Jun 2014 21:03:06 +0200
CC: Natro...@googlegroups.com
To: mackd...@gmail.com

This is maybe a cache issue. Try clearing the cache from the cache menu (click clear memory + disk cache). 
Here is a screenshot of a similar graph (though with the current dev version of Natron, maybe it has fixed something):
<Screen Shot 2014-06-24 at 9.01.59 PM.png>

On Jun 24, 2014, at 8:56 PM, mackd...@gmail.com wrote:

Sure thing. Here is a normal roto.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_01.jpg

Here it is inverted using the button in the roto node itself. Works great!
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_02.jpg

Here it is using the invert node instead of the checkbox. I was thinking it would be the exact same result.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_03.jpg

And just to be sure, I clicked the alpha button on the invert node, too.
https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_04.jpg

Alexandre

unread,
Jun 24, 2014, 3:58:49 PM6/24/14
to Omar Brown, Sean Kennedy, Sean's Gmail, natro...@googlegroups.com
It has nothing to do with the graphic card don't worry, this is more like a bug in the rendering engine.

You received this message because you are subscribed to the Google Groups "Natron" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Natron-VFX+...@googlegroups.com.

Vegas Editor

unread,
Jun 24, 2014, 4:01:36 PM6/24/14
to Alexandre, Sean Kennedy, Sean's Gmail, natro...@googlegroups.com
Okay cool


This is your season
Omar Brown
Blessed House Media

Frédéric Devernay

unread,
Jun 24, 2014, 6:33:41 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, Alexandre Gauthier-Foichat
OK, the problem is that you misused the invert node.

By default, the invert node only inverts R, G and B (I thought this was a good default, but obviously it's not)

You have to check the "A" box if you want A inverted by the node
I'll change the default so that all channels are inverted by default.

I may add the (un)premult option to all color correction nodes (Grade, COlorCorrect, Invert) later

f
> --
> You received this message because you are subscribed to the Google Groups "Natron" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to Natron-VFX+...@googlegroups.com.

mackd...@gmail.com

unread,
Jun 24, 2014, 6:35:26 PM6/24/14
to Natro...@googlegroups.com, mackd...@gmail.com, immar...@gmail.com, frederic...@inria.fr
If you look at the 4th image I posted, I did try it with the Alpha checkbox checked, as well.

https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_04.jpg

Frédéric Devernay

unread,
Jun 24, 2014, 10:29:39 PM6/24/14
to mackd...@gmail.com, Natro...@googlegroups.com, Alexandre Gauthier-Foichat
cool, a new bug!

Le 25 juin 2014 à 00:35, mackd...@gmail.com a écrit :

> If you look at the 4th image I posted, I did try it with the Alpha checkbox checked, as well.
>
> https://dl.dropboxusercontent.com/u/10553822/Natron%20stuff/roto_invert_04.jpg
>

mackd...@gmail.com

unread,
Jun 24, 2014, 11:03:08 PM6/24/14
to Natro...@googlegroups.com, mackd...@gmail.com, immar...@gmail.com, frederic...@inria.fr
Hahahaha, great attitude! :)

Alexandre

unread,
Jun 25, 2014, 1:40:58 AM6/25/14
to mackd...@gmail.com, Natro...@googlegroups.com, frederic...@inria.fr
I almost fixed that bug, it should be fixed soon

On Jun 25, 2014, at 5:03 AM, mackd...@gmail.com wrote:

> Hahahaha, great attitude! :)

Alexandre

unread,
Jun 25, 2014, 3:59:21 AM6/25/14
to mackd...@gmail.com, Natro...@googlegroups.com, frederic...@inria.fr
Reply all
Reply to author
Forward
0 new messages