GFXAdjustment
gfx.adjustment.set_lut
Client
Applies a specified LUT on the adjustment post-processing effect
Syntax
local status = gfx.adjustment.set_lut(path)LUTs (Look-Up Tables) are image-based maps used for color grading and correction. They remap color values to produce a desired visual tone or style.
- Use cases — cinematic tones, warm/cool color shifts, stylized or corrective filters
- Square grid layout — colors arranged in a grid (e.g.
8×8,16×16,64×64); higher sizes yield greater accuracy - Strip layout — colors arranged in a single horizontal row of N columns
- File format — provide the path as a
.pngimage using the appropriate layout
Parameters
| Type | Name | Description |
|---|---|---|
string | path | Path of the LUT to be applied |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Apply a LUT for cinematic color grading
gfx.adjustment.set_lut("lut/cinematic.png")