---
title: "effect.setParam: Set Effect Parameter — Film kit command — Kition"
description: "Sets `param` of `clip`'s `effect` (\"motion\", \"opacity\", a name or index) to `value`. With a `time` (sequence ticks; or `frame`, `seconds`, `timecode`) it sets a keyframe there, turning animation on if the parameter was static; without one it keys the playhead when the parameter is animated, else sets the static value. `param` is a parameter id or label, and a choice takes its option's name (any case) or index. `mask` targets a mask's parameter (a mask `path` in frame pixels). Motion's `scale_width` needs `uniform_scale` false (it is refused while Uniform Scale is on). `merge: true` makes a drag of this parameter one undo step; `merge` with a name makes every call with that name on the clip one undo step (a drag that changes several parameters); `begin` starts a new step."
canonical: "https://developer.kition.ai/docs/kits/film/commands/effect.setParam"
---

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

# effect.setParam

**Set Effect Parameter.** Sets `param` of `clip`'s `effect` ("motion", "opacity", a name or index) to `value`. With a `time` (sequence ticks; or `frame`, `seconds`, `timecode`) it sets a keyframe there, turning animation on if the parameter was static; without one it keys the playhead when the parameter is animated, else sets the static value. `param` is a parameter id or label, and a choice takes its option's name (any case) or index. `mask` targets a mask's parameter (a mask `path` in frame pixels). Motion's `scale_width` needs `uniform_scale` false (it is refused while Uniform Scale is on). `merge: true` makes a drag of this parameter one undo step; `merge` with a name makes every call with that name on the clip one undo step (a drag that changes several parameters); `begin` starts a new step.

- 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 |
| --- | --- | --- | --- |
| `begin` | `boolean` | no |  |
| `clip` | `integer` | no |  |
| `effect` | `string` | no | "motion"\|index |
| `frame` | `integer` | no | one of several alternative parameters |
| `mask` | `integer` | no |  |
| `merge` | `any` | no | bool\|str? |
| `param` | `string` | no |  |
| `seconds` | `number` | no | one of several alternative parameters |
| `time` | `integer` | no | ticks (254016000000 per second); one of several alternative parameters |
| `timecode` | `string` | no | the time, as a timecode (one spelling of it) |
| `value` | `any` | no | num\|[x,y]\|"#rrggbb"\|bool\|path |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `begin`, `clip`, `effect`, `frame`, `mask`, `merge`, `param`, `seconds`, `time`, `timecode`, `value`. 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": {
    "begin": {
      "type": "boolean"
    },
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "effect": {
      "description": "\"motion\"|index",
      "type": "string"
    },
    "frame": {
      "description": "one of several alternative parameters",
      "type": "integer"
    },
    "mask": {
      "type": "integer"
    },
    "merge": {
      "description": "bool|str?"
    },
    "param": {
      "type": "string"
    },
    "seconds": {
      "description": "one of several alternative parameters",
      "type": "number"
    },
    "time": {
      "description": "ticks (254016000000 per second); one of several alternative parameters",
      "type": "integer"
    },
    "timecode": {
      "description": "the time, as a timecode (one spelling of it)",
      "type": "string"
    },
    "value": {
      "description": "num|[x,y]|\"#rrggbb\"|bool|path"
    }
  },
  "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).
