DaVinci Resolve Studio · DCTL Suite
Primera is my personal suite of DaVinci Resolve Studio color grading DCTLs for both clip-level grading and some aspects of look development. The DCTLs are built via reusable code fragments via make (with help from Claude). The latest release of the built DCTLs is always available to download as a zip file (see below or, on GitHub, in the righthand sidebar under Releases).
Most of the underlying math comes from tried-and-tested publicly-available imaging science approaches and from my own extensive use of open-source DCTLs by many generous members of the “color-concerned community" (see at bottom). Primera consolidates the approaches I reach for most often into one place, under one name, and with only the controls I actually use.
My personal aesthetic lodestar remains a "film-like look," in the broad sense, but rather than emulating any specific stock or process (with one exception), I’m more chasing my personal past and on-going "sense memories" of seeing and working with film. Hopefully the tools are flexible enough to achieve most any look/style.
Primera.dctl is the foundation and provides primary grading controls for shot-to-shot balancing:
2^n) applied before the selected transfer functiontanh highlight compression controlling where the brightest values top out; works with Highlights to shape/compress the shoulder
PrimeraHue.dctl performs per-channel hue and density control via tetrahedral interpolation, based on hotgluebanjo’s DCTL implementation of the approach described by Steve Yedlin ASC in his DisplayPrep demo (2018). This tool expects a log source (not scene-linear).
tanh in the shoulder + exponential compression in the toe, applied last, to softly limit range excursion
PrimeraSplit.dctl provides subtractive color split-toning for imbuing shadows and highlights with (usually) contrasting color casts. Lately conceptualized less as an ‘effect' and more a fundamental look development tool, defining the chroma dimensions of the characteristic curve.
PrimeraSkin.dctl is a dedicated skintone sculpting tool operating in HSV. Meant for log-based timelines (any camera's log or log/log-like working spaces like DaVinci Wide Gamut/Intermediate or ACEScct). Everything outside the mask passes through untouched. I don't use this on every shot but it can be handy for "surgical" chroma operations targeting skintones. It mostly does what you might want but is still an on-going work-in-progress. One slider (Soften) performs a spatial operation so the node this tool is on should be bypassed when creating a 3D LUT.
Detection is rg-chromaticity-based rather than a plain hue/saturation slice: the pixel is normalized by r+g+b, which makes the ratios invariant to overall brightness, so the mask should catch fair and dark skin equally well. Log-space skin clusters tightly around g/(r+g+b) ≈ 0.33 with red leading blue. A hue gate centered on the nominal skin angle (~28°) attempts to keep Range meaningful as a user control. In other words, it creates a "fuzzy pie slice," centered on the skintone line with a chromaticity gate in front of it.
Gamut containment is done via the same "soft squeeze" described above (tanh in the shoulder and exponential compression in the toe), but here it is scaled by the mask. Pixels that are only faintly pooled into the mask get proportionally less clamping squeeze to avoid the (spatial) Soften control introducing banding around faces against bright or dark backgrounds.
typst and PDF (feedback welcome)There's not much particularly original in the Primera tools, like I said they're more of a curated/opinionated collection of my favorite approaches to primary grading and some aspects of look development. In no particular order, Primera owes 90%+ of its existence to the work of the following individuals: