---
title: "node.moveNodes: Move Nodes — Scene kit command — Kition"
description: "Moves nodes of `group` to `location` or by `offset` in the node editor."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/node.moveNodes"
---

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

# node.moveNodes

**Move Nodes.** Moves nodes of `group` to `location` or by `offset` in the node editor.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `group` | `integer \| string` | no | The group's id or name; the only group when left out |
| `location` | `number[]` | no | [x, y] to put the (one) node at |
| `nodes` | `integer[]` | yes | The nodes' ids |
| `offset` | `number[]` | no | [dx, dy] to move each by |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "node.moveNodes", "params": { "nodes": <integer[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `group`, `location`, `offset`. scene_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": {
    "group": {
      "description": "The group's id or name; the only group when left out",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "NodeGroup"
      ]
    },
    "location": {
      "description": "[x, y] to put the (one) node at",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "nodes": {
      "description": "The nodes' ids",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "offset": {
      "description": "[dx, dy] to move each by",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "required": [
    "nodes"
  ],
  "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).
