---
title: "setBoneLength"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737013/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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

> Macro (scroll-pagebreak)

## 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/ShogunPost121/pages/1253736642)
- [solve](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736571)