glmExportCharacterGeometry

The glmExportCharacterGeometry command exports the asset geometry file of a gcha into gcg or fbx format.
glmExportCharacterGeometry [-characterFile string] [-outputFileGCG string] [-outputFileFBX string]

Flags

Long name (short name) Argument types Properties Description
-characterFile (-gch) string mandatory Full path of the input gcha character file 
-outputFileGCG (-gcg) string one of fbx or gcg flag must be present Full path for the produced gcg file, produced from from the gcha and meshes in the scene.
-outputFileFBX (-fbx) string one of fbx or gcg flag must be present Full path of the ​produced fbx file, produced from from the gcha and meshes in the scene.
-bindPoseType (-bpt) string flag is optional, default to clusterBindPreMatrix which uses information from skinCluster node The location where the bindpose should be retrieved, can be "clusterBindPreMatrix" or "jointBindPose" or "jointCurrentValue". It is not case sensitive.
-append (-apd) string multi-use Name of the Maya meshes to append to the set output file.

Return Value

This command the file path of the exported Character Geometry File or nothing if the export failed

MEL Examples

glmExportCharacterGeometry -gch "c:/temp/example.gcha" -gcg "c:/temp/example.gcg";
// Result: the path of the exported character geometry file

Python Examples

import maya.cmds as cmds
cmds.glmExportCharacterGeometry(gch="c:/temp/example.gcha", gcg="
c:/temp/example.gcg")
// Result: the path of the exported character geometry file