---
title: "sequence.closeGap: Close Gap — Film kit command — Kition"
description: "Closes the gap on `track` at `time` (default playhead) by moving the clips after it earlier (ripple delete of the gap)."
canonical: "https://developer.kition.ai/docs/kits/film/commands/sequence.closeGap"
---

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

# sequence.closeGap

**Close Gap.** Closes the gap on `track` at `time` (default playhead) by moving the clips after it earlier (ripple delete of the gap).

- 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 |
| --- | --- | --- | --- |
| `time` | `integer` | no | ticks (254016000000 per second) |
| `track` | `string \| integer` | no | "V1"\|id |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `time`, `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": {
    "time": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "track": {
      "description": "\"V1\"|id",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    }
  },
  "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).
