Maya Python code that will reference in previously exported FBX animation from Unreal. The code will copy these attribute keys from the referenced transform node over to the Metahuman Face board controls. The referenced file is then removed once completed.
Note: This was built and tested using Maya 2022.4 and 2022.5 running Python 3.7 using latest assets from Unreal 5.2.
To confirm the animation data will work with your version of Maya and Maya FBX importer version (2020.2), open up the sample FBX provided in the project and if you see keyframe data exists on the transforms attributes. If not, then your version/cut of Maya is not supported with this code at this time.
- Export FBX Facial animation out from Unreal Sequencer
- Select the "Face Track" and not the "Face_ControlBoard_CtrlRig" track
- Bake keys down onto the Control rig
- Select the track and Export FBX
- Download script and place somewehere in your MAYA_PYTHON_PATH or maya/scripts folder
- Included in this project is a sample FBX file (metahuman_facial_example.fbx)
- Open/Reference/Import your Metahuman rig into the scene
- Select a face control on the rig
- Run Code in Maya Python Editor and use provided sample FBX or your own:
import metahuman_facial_transfer
metahuman_facial_transfer.import_metahuman_animation()
Free to use personally or commercially.