Oink
Nodes

ColorCorrect

Nuke ColorCorrect.

raw .md
NodeColorCorrect
Type idOC_N_colorcorrect
MenuColor › ColorCorrect
Nuke classColorCorrect
Codeopencomp_core/nodes/color/colorcorrect.py

ColorCorrect properties

Inputs and outputs

PortNameType
input 0Imageimage
input 1maskimage
output 0Imageimage

Knobs

Panel tab ColorCorrect, in panel order.

KnobLabelTypeDefaultRange / valuesNuke 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 / valuesNuke 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

Nuke equivalent

Imports from and exports to Nuke's ColorCorrect. The standard Nuke mask knobs (channels, mask, invert, (un)premult, mix) are mapped too.

Knobs with a different name here:

Nuke 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

Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. 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