rofunc.utils.datalab.poselib.poselib.skeleton.backend.fbx.fbx_backend#

This script reads an fbx file and returns the joint names, parents, and transforms.

NOTE: It requires the Python FBX package to be installed.

1.  Module Contents#

1.1.  Functions#

fbx_to_npy

This function reads in an fbx file, and saves the relevant info to a numpy array

parse_fbx

1.2.  API#

rofunc.utils.datalab.poselib.poselib.skeleton.backend.fbx.fbx_backend.fbx_to_npy(file_name_in, root_joint_name, fps)[source]#

This function reads in an fbx file, and saves the relevant info to a numpy array

Fbx files have a series of animation curves, each of which has animations at different times. This script assumes that for mocap data, there is only one animation curve that contains all the joints. Otherwise it is unclear how to read in the data.

If this condition isn’t met, then the method throws an error

Parameters:

file_name_in – str, file path in. Should be .fbx file

Returns:

nothing, it just writes a file.

rofunc.utils.datalab.poselib.poselib.skeleton.backend.fbx.fbx_backend.parse_fbx(file_name_in, root_joint_name, fps)[source]#