# Text

> Text (legacy) — draw text over the input; `size` knob, baseline justify.

| Node | Text |
|---|---|
| Menu | not in the node menu (created by import, scripts or other nodes) |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_text"` |
| .nk script | `Text` ([how .nk import works](/docs/nuke-users/nk-import)) |
| Python | `nuke.createNode("Text")` |
| Assistant (MCP) | `create_node(type="Text")` |
| Tab search | `text` |

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| input 0 | Image | image |
| output 0 | Image | image |

## Knobs

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

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `message` | message | text |  |  | `message` |  |
| `font` | font | text |  |  | `font` |  |
| `font_size` | font size | float | `100` | 0 to 500 | `size` |  |
| `xjustify` | xjustify | menu | `left` | left, center, right, justify | `xjustify` |  |
| `yjustify` | yjustify | menu | `baseline` | top, center, bottom, baseline | `yjustify` |  |
| `box` | box | vector ×4 | `0, 0, 0, 0` | -10000 to 10000 | `box` |  |
| `color` | color | colour ×4 | `1, 1, 1, 1` | 0 to 1 | `color` |  |
| `opacity` | opacity | float | `1` | 0 to 1 | `opacity` |  |
| `leading` | leading | float | `0` | -1 to 1 | `leading` |  |
| `translate` | translate | vector ×2 | `0, 0` | -10000 to 10000 | `translate` |  |

### 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 |
|---|---|
| `size` | `font_size` |

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


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