# Dissolve

> Mix between inputs by `which`.

| Node | Dissolve |
|---|---|
| Menu | Merge › Dissolve |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_dissolve"` |
| .nk script | `Dissolve` ([how .nk import works](/docs/nuke-users/nk-import)) |
| Python | `nuke.createNode("Dissolve")` |
| Assistant (MCP) | `create_node(type="Dissolve")` |
| Tab search | `dissolve` |

![Dissolve properties](/shots/nodes/dissolve@2x.webp)

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| input 0 | 0 | image |
| input 1 | 1 | image |
| input 2 | mask | image |
| output 0 | Image | image |

## Knobs

Panel tab **Dissolve**, in panel order.

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `channels` | channels | menu | `all` | rgba, rgb, alpha, all, none | `channels` | Channels the dissolve applies to |
| `which` | which | float | `0` | 0 to 1 | `which` | Input to show; a fraction mixes the two nearest inputs |
| `mask_channel` | mask | menu | `none` | none, rgba.alpha, rgba.red, rgba.green, rgba.blue |  | Mask channel (a linked mask input with none uses rgba.alpha) |
| `invert_mask` | invert | bool | `false` |  | `invert_mask` |  |
| `nk_inputs` | inputs | float | `2` | 1 to 16 (integer) | `inputs` |  |

### 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 |  |  |  |  |

## Knob names in .nk scripts

| .nk knob | Knob here |
|---|---|
| `inputs` | `nk_inputs` |

Other .nk knobs use the same name here. See [.nk import](/docs/nuke-users/nk-import).


---
Sources: opencomp_core/nodes/merge/keymix.py, opencomp_electron/src/components/properties/knobSchema.ts, opencomp_core/nk/mapping.py
