# DirectLight

> Parallel light along the light's -Z.

| Node | DirectLight |
|---|---|
| Menu | 3D › DirectLight |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_directlight"` |
| .nk script | `DirectLight`, also imports `DirectLight1` ([how .nk import works](/docs/nuke-users/nk-import)) |
| Python | `nuke.createNode("DirectLight")` |
| Assistant (MCP) | `create_node(type="DirectLight")` |
| Tab search | `directlight`, or its initials `dl` |

![DirectLight properties](/shots/nodes/directlight@2x.webp)

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| input 0 | axis | scene |
| output 0 | scene | scene |

## Knobs

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

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `read_from_file` | read from file | bool | `false` |  |  |  |
| `file` | file | file |  |  |  |  |
| `fbx_node_name` | node name | text |  |  |  |  |
| `color` | color | colour ×3 | `1, 1, 1` | 0 to 1 |  |  |
| `intensity` | intensity | float | `1` | 0 to 10 | `intensity` |  |
| `xform_order` | transform order | menu | `SRT` | SRT, STR, RST, RTS, TSR, TRS | `xform_order` |  |
| `rot_order` | rotation order | menu | `ZXY` | XYZ, XZY, YXZ, YZX, ZXY, ZYX | `rot_order` |  |
| `translate` | translate | vector ×3 | `0, 0, 0` | -100 to 100 | `translate` |  |
| `rotate` | rotate | vector ×3 | `0, 0, 0` | -180 to 180 | `rotate` |  |
| `scaling` | scale | vector ×3 | `1, 1, 1` | 0 to 10 | `scaling` |  |
| `uniform_scale` | uniform scale | float | `1` | 0 to 10 | `uniform_scale` |  |
| `skew` | skew | vector ×3 | `0, 0, 0` | -1 to 1 | `skew` |  |
| `pivot_translate` | pivot translate | vector ×3 | `0, 0, 0` | -100 to 100 | `pivot_translate` |  |
| `pivot_rotate` | pivot rotate | vector ×3 | `0, 0, 0` | -180 to 180 | `pivot_rotate` |  |

### 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 |  |  |  |  |
| `live_local` | Live Read Local Knobs | string |  |  |  |  |

## Knob names in .nk scripts

| .nk knob | Knob here |
|---|---|
| `pivot` | `pivot_translate` |

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


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