---
title: "cursor.set: Set 3D Cursor — Scene kit command — Kition"
description: "Puts the 3D cursor at `location`, or with `at` (a viewport pixel) onto the surface there (where there is none, onto the plane through the cursor facing the view). The person's view state: no undo step."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/cursor.set"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/cursor.set](https://developer.kition.ai/docs/kits/scene/commands/cursor.set)

# cursor.set

**Set 3D Cursor.** Puts the 3D cursor at `location`, or with `at` (a viewport pixel) onto the surface there (where there is none, onto the plane through the cursor facing the view). The person's view state: no undo step.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `at` | `number[]` | no | A viewport pixel [x, y]: the cursor goes onto the surface there, or where there is none, onto the plane through the cursor facing the view |
| `location` | `number[]` | no | Where to put the cursor, in metres [x, y, z] |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "cursor.set" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `number[]` | no | the cursor's place, metres |

```json
{
  "additionalProperties": true,
  "properties": {
    "cursor": {
      "description": "the cursor's place, metres",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "at": {
      "description": "A viewport pixel [x, y]: the cursor goes onto the surface there, or where there is none, onto the plane through the cursor facing the view",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "location": {
      "description": "Where to put the cursor, in metres [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
