Command · Import CDL
cdl.import
Sets clips' colour wheels from an ASC CDL file (.cc, .ccc, .cdl): the correction whose id is the clip's name, else the one at the clip's position, or "index".
- v1
- Capability EditSequence
- Tool
cdl_import
Request
{
"command": "cdl.import",
"params": {
"clip": 42,
"path": "C:/grades/shot42.cc"
}
}Parameters
clipinteger | object (1..)- The clip. A clip id, or {"track", "time"} for the clip there.
clips(integer | object (1..))[], min 1- Clips to change (or "clip" for one).
indexinteger (0..)- Which correction in the file (0 = first).
pathstringRequired- The CDL file.
sequenceinteger (1..)- Sequence id; only needed when the project has several.
Discussion
Sets clips' colour wheels from an ASC CDL file (.cc, .ccc, .cdl): the correction whose id is the clip's name, else the one at the clip's position, or "index". Values beyond the wheels' ranges are clamped (with a warning).
Run it with wabcut-cli cmd <project> --json, from an MCP client as cdl_import, or from an extension. See Edit commands for requests, references and results.
See also
cdl.*
- cdl.export
Export CDL. Writes clips' colour wheels as an ASC CDL: slope = gain - lift, offset = lift + offset, power = gamma, saturation. .cc holds one clip; .ccc and .cdl several (ids are the clip names).