---
title: "mixer.writeAutomation: Write Automation Points — Film kit command — Kition"
description: "Writes a whole automation curve to a strip's `lane` from `points` [[ticks, value]…], thinned to keyframes within `tolerance`, replacing that span; one undo step."
canonical: "https://developer.kition.ai/docs/kits/film/commands/mixer.writeAutomation"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/mixer.writeAutomation](https://developer.kition.ai/docs/kits/film/commands/mixer.writeAutomation)

# mixer.writeAutomation

**Write Automation Points.** Writes a whole automation curve to a strip's `lane` from `points` [[ticks, value]…], thinned to keyframes within `tolerance`, replacing that span; one undo step.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `lane` | `string` | no |  |
| `points` | `any[][]` | no | [[ticks,value]] |
| `strip` | `integer \| string` | no | mixer strip id, A1/S1 ordinal, Mix/master, or case-insensitive strip name |
| `tolerance` | `number` | no |  |
| `track` | `integer \| string` | no | mixer strip id, A1/S1 ordinal, Mix/master, or case-insensitive strip name |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "mixer.writeAutomation" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `lane`, `points`, `strip`, `tolerance`, `track`. film_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": {
    "lane": {
      "type": "string"
    },
    "points": {
      "description": "[[ticks,value]]",
      "items": {
        "type": "array"
      },
      "type": "array"
    },
    "strip": {
      "description": "mixer strip id, A1/S1 ordinal, Mix/master, or case-insensitive strip name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "props.name",
      "x-khp-types": [
        "Track"
      ]
    },
    "tolerance": {
      "type": "number"
    },
    "track": {
      "description": "mixer strip id, A1/S1 ordinal, Mix/master, or case-insensitive strip name",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "props.name",
      "x-khp-types": [
        "Track"
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
