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.
|Name||Flag arguments||Argument type||Exclusive to||Comments|
|1||string||—||Writes the script to the given file path.|
|0||—||—||Writes 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.|