Export Rig
The export_rig example saves the parameter transform, the parameter limits and the locators of a character to .model and .locators files. Use the -m or --model option to specify the input character file (.fbx, .glb, .gltf, .urdf, or .bvh). The input file is read as described in Files and options shared by the tools, and -p and -l apply before the export. When the file has several characters, use --character to select the one to export.
These outputs replace the deprecated --out-locators-local, --out-locators-global and --out-parameters options of convert_model; both tools write the same files.
export_rig [OPTIONS]
Options:
-h,--help Print this help message and exit
-m,--model TEXT:FILE REQUIRED
Input character file (.fbx/.glb/.gltf/.urdf/.bvh)
-p,--parameters TEXT:FILE Input model parameter file (.model)
-l,--locator TEXT:FILE Input locator file (.locators)
--character TEXT Export the character with this name; required when the input has several characters
--out-locators-local TEXT Output a locator file (.locators) in local space for transferring between identities
--out-locators-global TEXT Output a locator file (.locators) in global space for authoring a template
--out-parameters TEXT Output a model parameter file (.model) containing the parameter transform and limits
- Example 1: Export the parameter transform, the parameter limits and the locators of a glb model.
pixi run export_rig -m character.glb --out-parameters character.model --out-locators-local character.locators
- Example 2: Export the locators of the character named
handin global space, for authoring a template.
pixi run export_rig -m hand_and_object.glb --character hand --out-locators-global hand.locators