---
title: "node.setValue: Set Node Value — Scene kit command — Kition"
description: "Sets input or property `id` of node `node` in `group` to `value`."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/node.setValue"
---

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

# node.setValue

**Set Node Value.** Sets input or property `id` of node `node` in `group` to `value`.

- 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 |
| `id` | `string` | yes | An input socket's or a setting's id |
| `node` | `integer` | yes | The node's id: its id |
| `value` | `any` | no | The value: a number, [x, y, z], a boolean, a setting's choice, an object or material id, a text; null clears it |

## Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `group`, `value`. 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"
      ]
    },
    "id": {
      "description": "An input socket's or a setting's id",
      "type": "string"
    },
    "node": {
      "description": "The node's id: its id",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "value": {
      "description": "The value: a number, [x, y, z], a boolean, a setting's choice, an object or material id, a text; null clears it"
    }
  },
  "required": [
    "id",
    "node"
  ],
  "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).
