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

Uses sides and parts to automatically create a default retargeting constraint setup. (For details, see [Automatically set up a retarget](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737169) in *Getting started with Vicon Shogun Post*.)

This command operates on the current subject's retargeting setup. It attempts to create constraints for bones that have one or more active DoFs.

For the command to run without errors, ensure the following:

- There is a current subject.
- The current subject has a retargeting setup.
- Map mode is enabled.

You are warned if the command failed to auto-create constraints.

## Functional area

Data Manipulators

# Command syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `autoCreateRetargetingConstraints` |

### Arguments

None

### Flags

None

## Return value

void

# Additional information

## Related commands

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