---
title: "modal.pointer: Transform Pointer — Scene kit command — Kition"
description: "Moves the transform under way to where the pointer is now, with Shift's slowing and Ctrl's steps; answers the transform."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/modal.pointer"
---

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

# modal.pointer

**Transform Pointer.** Moves the transform under way to where the pointer is now, with Shift's slowing and Ctrl's steps; answers the transform.

- 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[]` | yes | Where the pointer is, [x, y] in viewport pixels |
| `precision` | `boolean` | no | Shift held: the pointer's motion counts for a tenth |
| `step` | `boolean` | no | Ctrl or Cmd held: snapping is inverted (with increments the value goes in steps of 1 m, 5°, 0.1; with precision 0.1 m, 1°, 0.01) |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "modal.pointer", "params": { "at": <number[]> } }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `active` | `boolean` | no |  |
| `changed` | `boolean` | no |  |
| `header` | `string` | no |  |
| `kind` | `"move" \| "rotate" \| "scale" \| "inset" \| "bevel" \| "loopCut" \| "slide"` | no |  |
| `taken` | `boolean` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "active": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean"
    },
    "header": {
      "type": "string"
    },
    "kind": {
      "enum": [
        "move",
        "rotate",
        "scale",
        "inset",
        "bevel",
        "loopCut",
        "slide"
      ],
      "type": "string"
    },
    "taken": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "at": {
      "description": "Where the pointer is, [x, y] in viewport pixels",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "precision": {
      "description": "Shift held: the pointer's motion counts for a tenth",
      "type": "boolean"
    },
    "step": {
      "description": "Ctrl or Cmd held: snapping is inverted (with increments the value goes in steps of 1 m, 5°, 0.1; with precision 0.1 m, 1°, 0.01)",
      "type": "boolean"
    }
  },
  "required": [
    "at"
  ],
  "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).
