JsonCutDocs

Vector paths and compositing

Keep path geometry editable, blend layers and lanes, use alpha mattes or erasers within a controlled layer group, key out backgrounds and export with transparency.

Structured vector points support straight lines and Bézier handles. Compositing changes how a layer's alpha affects lower siblings inside the same parent.

Rendered output

Experimental album cover

Editable vector geometry, overlapping color fields and local layer compositing in a still composition.

Experimental album cover
Image1080 × 1080Editable V2 source

Editable path

<div id="wave" data-jc-clip data-jc-kind="shape" data-jc-name="Wave"
  data-jc-start="0" data-jc-duration="1" data-jc-track="3"
  data-jc-vector-closed="true"
  data-jc-vector-fill="#ff9418"
  data-jc-vector-stroke="#ffffff"
  data-jc-vector-stroke-width="4"
  data-jc-vector-points="[{&quot;id&quot;:&quot;a&quot;,&quot;x&quot;:20,&quot;y&quot;:180,&quot;curve&quot;:true,&quot;controlOut&quot;:{&quot;x&quot;:120,&quot;y&quot;:20}},{&quot;id&quot;:&quot;b&quot;,&quot;x&quot;:420,&quot;y&quot;:180,&quot;curve&quot;:true,&quot;controlIn&quot;:{&quot;x&quot;:300,&quot;y&quot;:340}}]">
</div>

Alpha roles

<div id="local-composition" data-jc-clip data-jc-kind="group" ...>
  <img id="photo" data-jc-clip data-jc-kind="image" ... />
  <div id="cutout" data-jc-clip data-jc-kind="shape"
    data-jc-composite="erase" ...></div>
</div>
  • data-jc-composite="erase" removes lower sibling pixels using source alpha.
  • data-jc-composite="matte" keeps lower sibling pixels using source alpha.

The compositing layer itself is not painted into the output. Opaque pixels have full effect; gradients produce proportional transparency. Put the affected layers and the matte in one group when unrelated background layers must stay untouched.

Blend modes

A blend mode mixes a layer's colours with everything drawn below it. A layer stores its mode as the CSS mix-blend-mode style; JsonCut offers eight of them:

ModeWhat it doesTypical use
multiplyDarkens; white disappearsOverprint, ink, paper textures, shadows
darkenKeeps the darker colour of layer and backgroundDark marks over light footage
screenLightens; black disappearsLight leaks, flares, bokeh, grain drawn on black
lightenKeeps the lighter colour of layer and backgroundHighlights over dark footage
overlayMore contrast: lights lighter, darks darkerTextures, tints
soft-lightA gentle overlaySubtle textures and colour washes
differenceInverts where the layer is lightGraphic text over footage
colorThe layer's colour at the brightness belowDuotone, tinting footage
<div id="leak" data-jc-clip data-jc-kind="custom" ...
  style="left:0;top:0;width:1080px;height:1920px;mix-blend-mode:screen"></div>

A whole lane can blend too: tracks["3"].blendMode = "screen" gives every layer on lane 3 without its own mode that mode, which makes an overlay lane for leaks and grain. A layer's own mode wins; an explicit normal opts it out. A group passes its layers' modes through to everything below while it rests, like Photoshop's pass-through; while it moves or fades, or with data-jc-isolate="true" (Studio: Isolate blending, MCP: isolate: true), it blends them among themselves first. Set a mode on the group itself to blend the whole group. Where nothing lies below (a transparent PNG or WebP), the layer is exported as it is.

In Studio, Compositing → Blend previews each mode while the pointer rests on it and sets it for all selected layers; the lane menu in the timeline sets a lane's mode. From MCP, use blendMode on patch_clip and the add_* tools, and update_canvas with lanes: {"3": {"blendMode": "screen"}}. The quality report measures blended text by the colour it really shows and warns with BLEND_INVISIBLE when a mode makes a solid layer disappear.

Remove a background without AI

data-jc-key keys out the background of an image or video layer, live in the preview and in the export. It holds JSON:

<video id="presenter" data-jc-clip data-jc-kind="video" ...
  data-jc-key='{"color":"#00b140","tolerance":40,"softness":20,"spill":50}'
  src="jsoncut-media://media_presenter"></video>
FieldMeaning
modecolor (default), luma or difference
color, colorscolor mode: the #rrggbb colour to remove, plus up to three more samples for an unevenly lit screen
lumaluma mode: remove dark (default) or light areas
platedifference mode: a still of the empty background (jsoncut-media:// reference or URL)
tolerance, softness0 to 100 (defaults 40 and 20)
spillcolor mode only: 0 to 100, removes the key colour's cast on the edges (default 50)
choke0 to 10 px: shrinks the kept area to drop a coloured fringe (default 0)

In Studio, Remove background on a picture or video layer writes the same attribute. From MCP, patch a layer with key or the chromaKey shortcut (a colour, dark or light).

Transparent output

Images keep transparency in PNG and WebP; a project with canvasBackground: "transparent" renders transparent by default, while JPG and PDF cannot. A video keeps a transparent background only on request: set transparent: true with MOV (ProRes 4444) or WebM (VP9). The canvas colour is then left out, so only your layers remain; full-size background layers still cover it. Transparent video renders are slower and the files are much larger. In Studio the export dialog shows Transparent background for these formats.