---
title: "timeline.razor: Razor — Film kit command — Kition"
description: "Cuts clips at `time` (ticks), `seconds`, `frame` or `timecode` (default playhead): only `clip` (and linked partners) when given, else every clip on `track`, else all unlocked tracks. Answers `cuts`, the new clip ids (`clips`: the right-hand piece of each cut; the cut clip keeps its id for the left piece), and `pieces` ({left, right} for each cut)."
canonical: "https://developer.kition.ai/docs/kits/film/commands/timeline.razor"
---

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

# timeline.razor

**Razor.** Cuts clips at `time` (ticks), `seconds`, `frame` or `timecode` (default playhead): only `clip` (and linked partners) when given, else every clip on `track`, else all unlocked tracks. Answers `cuts`, the new clip ids (`clips`: the right-hand piece of each cut; the cut clip keeps its id for the left piece), and `pieces` ({left, right} for each cut).

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes
- Acts on: `clip` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `clip` | `integer` | no |  |
| `frame` | `integer` | no |  |
| `seconds` | `number` | no |  |
| `time` | `integer` | no | ticks (254016000000 per second) |
| `timecode` | `string` | no |  |
| `track` | `string \| integer` | no | "V1"\|id? |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `clip`, `frame`, `seconds`, `time`, `timecode`, `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": {
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "frame": {
      "type": "integer"
    },
    "seconds": {
      "type": "number"
    },
    "time": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "timecode": {
      "type": "string"
    },
    "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).
