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

Creates and sets up a solver for the given character.

To solve a skeleton, the bones of the skeleton must be added to a solver. Typically a solver is created for each character and all the bones of each character are added to the solver that represents that character. When the solve command is executed, a solver is automatically created for any characters in the scene with none of its bones already in a solver. This is done as a convenience to the user so they do not need to create and setup solvers themselves. This command allows the auto-creation of a solver to be performed explicitly.

## Functional area

Skeletal solving

# Command syntax

## Syntax

|  |
| --- |
| `autoCreateSolver characterName[-addSelectedBonesOnly]` |

### Arguments

> Macro (scroll-tablelayout)

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `characterName` | String | Yes | Specifies the name of the character to create a solver for. |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `addSelectedBonesOnly` | 0 | — | — | Specifies that only the selected bones should be added to the solver. |

## Return value

boolean

## Examples

```plaintext
// Auto-create a solver for the Character named Bob.
autoCreateSolver "Bob";
```

# Additional information

## Related commands

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