---
title: "createSidesAndPartsScript"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737411/createSidesAndPartsScript"
format: markdown
---
# Description

Outputs a Shogun Post script that creates sides and parts for the current subject.

The output script can be written to a file, or written to the **Script Editor**, where it can be modified as required for use in other rigs.

## Functional area

Skeletal Solving

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `createSidesAndPartsScript [-file string] [-interface] [-dofs]` |

### Arguments

None




### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Comments |
| --- | --- | --- | --- |
| `file` | 1 | string | Writes the script to the given file path. |
| `interface` | 0 | — | Writes the created script in the **Script Editor** panel. |
| dofs |  |  | Includes the degrees of freedom for each bone in the target skeleton in the script |

## Return value

void

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [autoCreateRetargetingConstraints](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737660)
- [autoSetSideAndParts](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738686)