---
title: "window.scriptPanel: Script Panel — Motion kit command — Kition"
description: "Window ▸ <script panel>: run the panel script (or bring its panel forward)."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/window.scriptPanel"
---

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

# window.scriptPanel

**Script Panel.** Window ▸ <script panel>: run the panel script (or bring its panel forward).

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | no | a script in the Script Panels folder, e.g. `Layer Tools.jsx` |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "window.scriptPanel" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `name`. motion_run answers the step’s result in `completed[i].result`.

## Result



```json
{
  "description": "opens it as a dockable panel"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "description": "a script in the Script Panels folder, e.g. `Layer Tools.jsx`",
      "type": "string"
    }
  },
  "returns": "opens it as a dockable panel",
  "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).
