trigger.utils.mocap.mapper

Mocap mapper for importing motion capture data from an FBX file.

Attributes

LOG

Classes

MocapMapper

Mocap mapper for importing motion capture data from an FBX file.

Module Contents

class MocapMapper(anim_fbx_file=None, bind_pose_fbx_file=None, keep_fbx=False, bake=True)

Bases: object

Mocap mapper for importing motion capture data from an FBX file.

apply_animation()

Apply the animation to the rig.

list_mappings()

List the available mappings.

set_anim_fbx(fbx_file)

Set the FBX file.

Args:

fbx_file (str): Path to the FBX file.

set_bake(bake)

Set the bake flag.

Args:

bake (bool): Bake the animation.

set_bind_pose_fbx(fbx_file)

Set the FBX file.

Args:

fbx_file (str): Path to the FBX file.

set_keep_fbx(keep_fbx)

Set the keep_fbx flag.

Args:

keep_fbx (bool): Keep the FBX file after import.

set_mapping(mapping_name)

Set the mapping from the list of available mappings.

Args:

mapping_name (str): Name of the mapping.

set_mapping_dictionary(mapping_dictionary)

Set the mapping.

Args:

mapping_dictionary (dict): Mapping of the FBX file to the scene.

LOG