Oink
Nodes

DeepRecolor

DeepRecolor — give deep samples the colour of a flat image: each sample's rgb = colour.rgb * sample alpha / the deep image's flattened alpha, so the recoloured deep flattens back to the colour image (

raw .md

DeepRecolor — give deep samples the colour of a flat image: each sample's rgb = colour.rgb * sample alpha / the deep image's flattened alpha, so the recoloured deep flattens back to the colour image (times the deep coverage). target_input_alpha also scales the sample alphas towards the colour image's alpha (an approximation: flattening is not linear in alpha). Python per-sample loop in this first cut (max_samples).

NodeDeepRecolor
Type idOC_N_deeprecolor
MenuDeep › DeepRecolor
Nuke classDeepRecolor
Codeopencomp_core/nodes/deep/deep_nodes.py

DeepRecolor properties

Inputs and outputs

PortNameType
input 0depthimage
input 1colorimage
output 0Imageimage

Knobs

Panel tab Deeprecolor, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
target_input_alphatarget input alphaboolfalsetarget_input_alpha

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
max_samplesmax samplesint40000001 to 2147483647Python per-sample loop in this first cut: bigger deep images pass through unchanged

Nuke equivalent

Imports from and exports to Nuke's DeepRecolor.

Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. See .nk import.

On this page