Color (write)
color_writeChange DaVinci Resolve color state by adding versions, applying DRX grades, managing color groups, setting CDL/node LUTs, exporting LUTs, and encrypting DCTLs; each write is verified by read-back.
Instructions
Change color state; may overwrite current values. Every change is read back from Resolve (receipt.verified=false means it did not take). op.action (params; * = required):
add_version(item*, name*, version_type): Add a color version to a clip (Color page; fails from the Edit page).
apply_grade_from_drx(target*, path*, grade_mode, apply_to_all_layers, reset_first): Apply a DRX grade to a graph (Color page); replaces the current grade, no new version.
assign_to_color_group(group*, items*): Assign clips to an existing color group.
create_color_group(name*): Create a color group (the name must be unique).
encrypt_dctl(input_path*, output_folder*, name, expiry): Encrypt a DCTL file into an output folder.
export_lut(item*, path*, lut_type): Export the grade of a clip as a LUT file (works only from the Color page).
load_version(item*, name*, version_type): Make a named color version the active one of a clip.
remove_from_color_group(items*): Remove clips from their color group.
rename_color_group(name*, new_name*): Rename a color group.
rename_version(item*, name*, new_name*, version_type): Rename a color version of a clip.
reset_node_colors(item*): Reset the node colors of every node in the active version of a clip.
set_cdl(item*, node*, slope, offset, power, saturation): Set CDL slope, offset, power and saturation on a node of a clip.
set_node_cache_mode(target*, node*, mode*): Set the render cache mode (auto, enabled, disabled) of a node.
set_node_enabled(target*, node*, enabled*): Enable or disable a node of a clip, group or timeline graph.
set_node_lut(target*, node*, lut_path*): Set (or clear) a node LUT; files outside the LUT root are installed into it first. Shortcuts (prefer them for whole tasks):
workflow_write.apply_look: Apply a LUT to every video item, group them in a color group and grab a still. One call instead of set_node_lut, create_color_group, assign_to_color_group. Calls known in advance (a sequence, the same change on several items): ONE batch_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | {action, ...params}. Parameters per action: see the description or this server's describe_action tool. | |
| dry_run | No | true: return the planned effect, change nothing. | |
| snapshot | No | true: back up the timeline/project first; omitted: server policy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| plan | No | ||
| status | Yes | ||
| receipt | No |