---
title: "bone.set: Bone Settings — Scene kit command — Kition"
description: "Changes bone `bone`: name, head, tail, roll, parent, connection, deform."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/bone.set"
---

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

# bone.set

**Bone Settings.** Changes bone `bone`: name, head, tail, roll, parent, connection, deform.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: yes
- Acts on: `object` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bone` | `string` | no | The bone; the active one when left out |
| `connected` | `boolean` | no | The head sits on the parent's tail |
| `deform` | `boolean` | no | The bone deforms meshes |
| `envelopeDistance` | `number` | no | Envelope: how far past the radii it fades out, metres (0.25) |
| `envelopeMultiply` | `boolean` | no | Multiply the bone's vertex group weights by its envelope |
| `envelopeWeight` | `number` | no | Envelope: its strength where full (1) |
| `head` | `number[]` | no | Where it starts, armature space [x, y, z] |
| `headRadius` | `number` | no | Envelope: the radius at the head, metres (0.1) |
| `name` | `string` | no | A new name |
| `object` | `integer \| string` | no | The armature; the active one when left out |
| `parent` | `string` | no | The parent bone; an empty string clears it |
| `pick` | `number[]` | no | Instead of `object`/`objects`: a world point [x, y, z] in metres; the command acts on the object there now (the smallest whose mesh's bounds hold the point, else the nearest light, camera, empty, curve, text, lattice or armature whose origin is within 0.25 m). A place: with `basis`, a write by it is refused when what is at the point is no longer what was there (moved away, another moved in, its parent moved) |
| `roll` | `number` | no | Turn about its own axis, degrees |
| `shape` | `integer \| string` | no | Custom shape: the object whose mesh draws the bone; null for the octahedron |
| `shapeBoneSize` | `boolean` | no | Custom shape: scaled by the bone's length too (true) |
| `shapeRotation` | `number[]` | no | Custom shape: its turn in the bone's axes, degrees [x, y, z] |
| `shapeScale` | `number[]` | no | Custom shape: its scale [x, y, z] |
| `shapeTranslation` | `number[]` | no | Custom shape: its offset in the bone's axes, metres [x, y, z] |
| `shapeWire` | `boolean` | no | Custom shape: drawn as its edges only |
| `tail` | `number[]` | no | Where it ends, armature space [x, y, z] |
| `tailRadius` | `number` | no | Envelope: the radius at the tail, metres (0.05) |

## Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `bone`, `connected`, `deform`, `envelopeDistance`, `envelopeMultiply`, `envelopeWeight`, `head`, `headRadius`, `name`, `object`, `parent`, `pick`, `roll`, `shape`, `shapeBoneSize`, `shapeRotation`, `shapeScale`, `shapeTranslation`, `shapeWire`, `tail`, `tailRadius`. 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": {
    "bone": {
      "description": "The bone; the active one when left out",
      "type": "string"
    },
    "connected": {
      "description": "The head sits on the parent's tail",
      "type": "boolean"
    },
    "deform": {
      "description": "The bone deforms meshes",
      "type": "boolean"
    },
    "envelopeDistance": {
      "description": "Envelope: how far past the radii it fades out, metres (0.25)",
      "type": "number"
    },
    "envelopeMultiply": {
      "description": "Multiply the bone's vertex group weights by its envelope",
      "type": "boolean"
    },
    "envelopeWeight": {
      "description": "Envelope: its strength where full (1)",
      "type": "number"
    },
    "head": {
      "description": "Where it starts, armature space [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "headRadius": {
      "description": "Envelope: the radius at the head, metres (0.1)",
      "type": "number"
    },
    "name": {
      "description": "A new name",
      "type": "string"
    },
    "object": {
      "description": "The armature; the active one when left out",
      "oneOf": [
        {
          "description": "the object's id",
          "type": "integer"
        },
        {
          "description": "the object's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Object"
      ]
    },
    "parent": {
      "description": "The parent bone; an empty string clears it",
      "type": "string"
    },
    "pick": {
      "description": "Instead of `object`/`objects`: a world point [x, y, z] in metres; the command acts on the object there now (the smallest whose mesh's bounds hold the point, else the nearest light, camera, empty, curve, text, lattice or armature whose origin is within 0.25 m). A place: with `basis`, a write by it is refused when what is at the point is no longer what was there (moved away, another moved in, its parent moved)",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "roll": {
      "description": "Turn about its own axis, degrees",
      "type": "number"
    },
    "shape": {
      "description": "Custom shape: the object whose mesh draws the bone; null for the octahedron",
      "oneOf": [
        {
          "description": "the object's id",
          "type": "integer"
        },
        {
          "description": "the object's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Object"
      ]
    },
    "shapeBoneSize": {
      "description": "Custom shape: scaled by the bone's length too (true)",
      "type": "boolean"
    },
    "shapeRotation": {
      "description": "Custom shape: its turn in the bone's axes, degrees [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "shapeScale": {
      "description": "Custom shape: its scale [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "shapeTranslation": {
      "description": "Custom shape: its offset in the bone's axes, metres [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "shapeWire": {
      "description": "Custom shape: drawn as its edges only",
      "type": "boolean"
    },
    "tail": {
      "description": "Where it ends, armature space [x, y, z]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "tailRadius": {
      "description": "Envelope: the radius at the tail, metres (0.05)",
      "type": "number"
    }
  },
  "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).
