/
createConstraintsScript

createConstraintsScript

Description

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

Syntax

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

Arguments

None

Flags

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


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


Creates retargeting constraints and their weights
applyToCurrentSubject


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

void

Additional information

Related commands

Related content


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks