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
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).
| Node | DeepRecolor |
|---|---|
| Menu | Deep › DeepRecolor |
| Names in each format | |
| .oink comp (JSON) | "type": "OC_N_deeprecolor" |
| .nk script | DeepRecolor (how .nk import works) |
| Python | nuke.createNode("DeepRecolor") |
| Assistant (MCP) | create_node(type="DeepRecolor") |
| Tab search | deeprecolor, or its initials dr |

Inputs and outputs
| Port | Name | Type |
|---|---|---|
| input 0 | depth | image |
| input 1 | color | image |
| output 0 | Image | image |
Knobs
Panel tab Deeprecolor, in panel order.
| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
target_input_alpha | target input alpha | bool | false | target_input_alpha |
Other knobs (Python, .nk and the assistant; not on the panel)
| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
gl_color | Viewer Controls Color | float ×3 | 0, 0, 0 | 0 to 1 | ||
postage_stamp_frame | Static Frame | int | 1 | -2147483648 to 2147483647 | ||
lifetimeStart | Lifetime Start | int | 0 | -2147483648 to 2147483647 | ||
lifetimeEnd | Lifetime End | int | 100 | -2147483648 to 2147483647 | ||
useLifetime | Use Lifetime | boolean | false | |||
cached | Cached | boolean | false | |||
bookmark | Bookmark | boolean | false | |||
dope_sheet | Dope Sheet | boolean | false | |||
clone_group | Clone Group | string | ||||
link_source | Link Source | string | ||||
link_overrides | Link Overrides | string | ||||
split_views | Split Views | string | ||||
max_samples | max samples | int | 4000000 | 1 to 2147483647 | Python per-sample loop in this first cut: bigger deep images pass through unchanged |