---
title: "setBoneLength"
canonical: "https://help.vicon.com/space/Shogun16/13340263/setBoneLength"
format: markdown
---
# Description

Sets the length of the primary selected BoneNode by adjusting the selected BoneNode's child (in the axis pointing down the bone).

Used often when fine-tuning the setup of a skeleton.

## Functional area

Data manipulators

# Command syntax

## Syntax

|  |
| --- |
| `setBoneLength length [-relative] [-adjustChildren]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `length` |  |  | Constrains the children of the bone to their current location in world space. |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `relative` | 0 | — | — | — |
| `adjustChildren` | 0 | — | — | — |

## Return value

void

## Examples

```plaintext
//Demonstrate the setBoneLength command
//Create a default skeleton
select lfemur;
setBoneLength 1.2 -relative -adjustChildren ;
```

# Additional information

## Related commands

- [createSkelScript](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339797)
- [solve](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341929)