This information is for Vicon Shogun 1.7. For up-to-date help, see the latest Shogun documentation.

Vicon Shogun banner


Use the createConstraintsScript to output a Shogun Post script which creates constraints or just constraint weights of the current subject or selected constraints.

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

This command is the equivalent of clicking the Export Weights or Import Weights and Export Constraints or Import Constraints buttons on the Modify Setup tab of the Solving tab in the Subject Setup panel.

When createConstraintsScript is run, constraint mirroring is disabled. getMirrorConstraintCreation enables you to restore constraint mirroring to its original state.

Functional area

Skeletal Solving

Command syntax


createConstraintsScript [-file string] [-interface] [-weightsOnly] [-retargeting] [-applyToCurrentSubject] 




NameFlag argumentsArgument typeExclusive toComments
file1stringWrites the script to the given file path.
interface0Writes the created script in the Script Editor panel.

Creates just the constraint weights of the current subject or selected constraints.

Creates retargeting constraints and their weights

Enables constraint and weight exported scripts to run on any subject rather than just the one it was created from, as long as the constraint names (in the case of weights) and bone names (in the case of constraints) are the same. This applies to scripts it creates for both solving and retargeting.

Return value


Additional information

Related commands