Motion kit command

contentFill.set

Content-Aware Fill Settings

Sets the Content-Aware Fill options used by layer.newContentAwareFill: `method` (object, surface, edgeBlend), `range` (workArea, entire), `alphaExpansion` (px), `lightingCorrection` (none, subtle, moderate, strong), `referenceLayer`, `referenceTime` (s).

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of contentFill.set
NameTypeRequiredDescription
alphaExpansionnumbernopx
lightingCorrection"none" | "subtle" | "moderate" | "strong"no
methodstringnoobject|surface|edgeBlend
range"workArea" | "entire"no
referenceLayerinteger | stringnolayer|null
referenceTimenumbernos

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "contentFill.set" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: alphaExpansion, lightingCorrection, method, range, referenceLayer, referenceTime. motion_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "alphaExpansion": {
      "description": "px",
      "type": "number"
    },
    "lightingCorrection": {
      "enum": [
        "none",
        "subtle",
        "moderate",
        "strong"
      ],
      "type": "string"
    },
    "method": {
      "description": "object|surface|edgeBlend",
      "type": "string"
    },
    "range": {
      "enum": [
        "workArea",
        "entire"
      ],
      "type": "string"
    },
    "referenceLayer": {
      "description": "layer|null",
      "oneOf": [
        {
          "description": "layer id or 1-based index",
          "type": "integer"
        },
        {
          "description": "layer name or #n",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "referenceTime": {
      "description": "s",
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.