---
title: "contentFill.set: Content-Aware Fill Settings — Motion kit command — Kition"
description: "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)."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/contentFill.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/contentFill.set](https://developer.kition.ai/docs/kits/motion/commands/contentFill.set)

# 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); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `alphaExpansion` | `number` | no | px |
| `lightingCorrection` | `"none" \| "subtle" \| "moderate" \| "strong"` | no |  |
| `method` | `string` | no | object\|surface\|edgeBlend |
| `range` | `"workArea" \| "entire"` | no |  |
| `referenceLayer` | `integer \| string` | no | layer\|null |
| `referenceTime` | `number` | no | s |

## 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/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
