Despill to Color v4.8

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Johannes Masanz
- pick screen color - set target color
14.0, 13.0, 12.0, 9.0 or later
Linux, Mac, Windows
22 Jul 2023


Demo video:

If you are trying to fix an objects edge, by bringing back its original color, then this tool is perfect for you! DespillToColor is designed to work best with a specific user defined screen color and therefore a good local solution for certain areas of your plate.

- pick a blue- / greenscreen color - set or pick a target color.

- 'balance' controls how much red tones are being affected by the despill operation opposed to blue and green tones.

- Increasing the 'gain' will affect a wider range of colors, like the finetune knob in DespillMadness.

- Although using 'erode' and 'falloff' - hidden in the info tab -  is not recommended it can be a nifty cheat in rare cases. - like when dealing with edge artefacts in the plate.


Gizmo vs Group

For the sake of quickly trying this tool I uploaded it as a group node. Just download and drag and drop it into your node graph.

If you decide to use DespillToColor more often I recommend converting the group into a gizmo. Unlike a group that is loaded from the toolsets a gizmo will always automatically show its controls in the properties panel on creation. How to create a gizmo >


Example pics: (For testing I recommend blurring these jpegs a little to get rid of compression artefacts.)


Updates in V. 4.2:

Despill gain below 1 now working more like expected (sticks with the defined target colour).

V. 4.4:

Added option to despill red tones.

V. 4.5:

Proper continuous handling of extremely high brightness values.

Mask options  'invert'  'inject'  'fringe'  fixed.

The 'erode' controls should be used sparingly and thus got moved to the info tab to take up less space.

V. 4.8:

Revised internal node structure > 10% lighter / faster.

Tooltip adjustments.




Please login in order to download these files.


+3 # Lucas Pfaff 2017-02-07 13:55

it looks nice but somehow it doesn't work for me out of the box. It seems that the gamma-falloff Grade nodes don't work as anticipated, the alpha doesn't work as mask (even if I turn off Black clip). Disabling them or using one of the colour channels as mask for despillColor-Gr ade makes it work.

But also, my screen only gets greener; enabling "Reverse" on the despillColor then makes it work at it seems it should :o
+1 # Johannes Masanz 2017-02-07 20:08
ooops :) i never tested it with green screen since i created the gizmo.that should work now. thanks for the comment!
0 # Lucas Pfaff 2017-02-08 14:21
Hi Johannes,

haha, when I checked it out I had no bluescreen at hand :)
Works like a charm now. I actually just put it to some good use in a comp! :)

+1 # Johannes Masanz 2017-02-10 07:57
Thank you! Thats great to hear :)
I think the latest version is pretty solid now. Let me know if there is anything left to be improved / added.
+1 # selvam B 2017-02-16 06:05
Why am I getting error "Knob despillGamma disable is of an unknown type 80"?
+1 # Johannes Masanz 2017-02-16 08:08
Hey, which Nuke version are you on? Other than that the node is working?

You could right click and go to "manage user knobs", then delete that knob, choose "pick" and grab that knob anew from the "despillGamma" node. Let me know if you need a more detailed description.
0 # selvam B 2017-02-17 09:25
Nuke version 7.0.v8 & thanks i will try that....
+1 # Johannes Masanz 2017-02-17 15:29
Today I rearanged the falloff knobs a bit for better usability. The latest version should work for you. :)
+1 # Tilman Paulin 2017-02-27 11:04
I really like this despill! Thanks for your work on this and for sharing it, Johannes! :)
+1 # Johannes Masanz 2017-02-27 20:23
Thanks for the positive feedback :) - made my monday morning!
+1 # satheesh R 2017-07-31 06:20
This tool looks promising Johannes, Really appreciated your effort to avail for public use.
some suggestion:
1. Replace 'ErodeNode' with some other expressions. I really like the 'Keylight' erode option. it works 0.1 aswell.

2. Looking for 'protect tones' future in next update. Check adrian's apDespill for ref.
+1 # Johannes Masanz 2017-07-31 19:55
Thanks for the suggestions! I will have a look if there is a better way to do the erode.

AP Despill is a great tool!
I will consider including a similar feature but maybe I prefer to keep it simple ; ) I really like to use despillToColor more often in one comp and tweak every instance so that it works well with a certain area / color / object (on top of an other, general despill). A little fix here, a little fix there ... thats why it is meant to be light and quickly tweaked.
+1 # Will Marker 2020-01-20 20:38
just wanted to say thank you! been using it for a couple years now and its a great tool for despill.
+1 # Dain Paras 2020-11-11 18:20

Is there a way to show this in TOOLS like a gizmo rather than drag and dropping it?

0 # Johannes Masanz 2020-11-11 21:32
Hi Dain,
the quickest way is to save it in your toolsets. (using the wrench icon on the left side toolbar.)

Also have a look at this tutorial -
- that explains how to convert a group into a gizmo.

You have no rights to post comments

We have 2466 guests and 46 members online