Oink
ColorCorrect ColorCorrect

ColorCorrect

Saturation, contrast, gamma, gain and offset, separately for shadows, midtones and highlights.

raw .md
NodeColorCorrect
MenuColor › ColorCorrect
Names in each format
.oink comp (JSON)"type": "OC_N_colorcorrect"
.nk scriptColorCorrect (how .nk import works)
Pythonnuke.createNode("ColorCorrect")
Assistant (MCP)create_node(type="ColorCorrect")
Tab searchcolorcorrect, or its initials cc

ColorCorrect properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1maskimage
output 0Imageimage

Knobs

Panel tab ColorCorrect, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
channelschannelsmenurgbrgba, rgb, alpha, all, noneLayer the op applies to: rgb, rgba, alpha, all, none, <layer> or <layer>.<ch>
saturationsaturationcolour ×41, 1, 1, 10 to 4saturation
contrastcontrastcolour ×41, 1, 1, 10 to 4contrast
gammagammacolour ×41, 1, 1, 10.2 to 5gamma
gaingaincolour ×41, 1, 1, 10 to 4gain
offsetoffsetcolour ×40, 0, 0, 0-1 to 1offset
shadows_saturationsaturationcolour ×41, 1, 1, 10 to 4shadows.saturation
shadows_contrastcontrastcolour ×41, 1, 1, 10 to 4shadows.contrast
shadows_gammagammacolour ×41, 1, 1, 10.2 to 5shadows.gamma
shadows_gaingaincolour ×41, 1, 1, 10 to 4shadows.gain
shadows_offsetoffsetcolour ×40, 0, 0, 0-1 to 1shadows.offset
midtones_saturationsaturationcolour ×41, 1, 1, 10 to 4midtones.saturation
midtones_contrastcontrastcolour ×41, 1, 1, 10 to 4midtones.contrast
midtones_gammagammacolour ×41, 1, 1, 10.2 to 5midtones.gamma
midtones_gaingaincolour ×41, 1, 1, 10 to 4midtones.gain
midtones_offsetoffsetcolour ×40, 0, 0, 0-1 to 1midtones.offset
highlights_saturationsaturationcolour ×41, 1, 1, 10 to 4highlights.saturation
highlights_contrastcontrastcolour ×41, 1, 1, 10 to 4highlights.contrast
highlights_gammagammacolour ×41, 1, 1, 10.2 to 5highlights.gamma
highlights_gaingaincolour ×41, 1, 1, 10 to 4highlights.gain
highlights_offsetoffsetcolour ×40, 0, 0, 0-1 to 1highlights.offset
mask_channelmaskmenunonenone, rgba.alpha, rgba.red, rgba.green, rgba.blueMask channel, e.g. rgba.alpha (none = no mask)
injectinjectboolfalseCopy the mask into mask.a for nodes downstream
invert_maskinvertboolfalseinvert_mask
fringefringeboolfalseOnly apply the effect at the edges of the mask
unpremult(un)premult bymenunonenone, rgba.alpha
invert_unpremultinvertboolfalse(Un)premultiply by 1 - alpha
enable_mix_luminancemix luminancebooltrueenable_mix_luminance
mix_luminancemix luminancefloat00 to 1mix_luminance
mixmixfloat10 to 1mix
testtestboolfalsetest
lookuplookupcurves{shadow {curve 1 s0 x0.09 0 s0} midtone {1-shadow-highlight} highlight {curve x0.5 0 s0 x1 1 s0}}

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / values.nk knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring

Knob names in .nk scripts

.nk knobKnob here
shadows.saturationshadows_saturation
shadows.contrastshadows_contrast
shadows.gammashadows_gamma
shadows.gainshadows_gain
shadows.offsetshadows_offset
midtones.saturationmidtones_saturation
midtones.contrastmidtones_contrast
midtones.gammamidtones_gamma
midtones.gainmidtones_gain
midtones.offsetmidtones_offset
highlights.saturationhighlights_saturation
highlights.contrasthighlights_contrast
highlights.gammahighlights_gamma
highlights.gainhighlights_gain
highlights.offsethighlights_offset

Other .nk knobs use the same name here. See .nk import.

Examples

Open these from Help › Examples…, or from the ? menu in this node's Properties panel.

  • ColorCorrect by tonal range (examples/color/colorcorrect_ranges.oink): ColorCorrect adjusts shadows, midtones and highlights separately. Here the shadows get cooler and less saturated, the highlights warmer, and the whole image a bit more contrast.

On this page