xGen2UE Script - Export Alembic Hair from Maya xGen to UnrealEngine5
*Disclaimer: Guides attribute/feature doesn't work. All other features work perfectly fine. I do not provide support or updates to the script.
Scripts automates the exporting process of hair created with xGen Maya to UnrelEngine5 (and UE4) in Alembic format and assigns all the necessary attributes.
Works with Maya 2022, 2023,2024. DOES NOT WORK WITH MAYA 2019, 2020, 2025
!!! The script will not work if you don't have xGen component in your scene. It doesn't work with grooms created with Interactive Groom Splines.
The xGen2UE Script assigns attributes for alembic file with one click of a button:
- RootUV attribute
- Group ID (when you need to separate the groom into groups in UE)
- Hair width
- Automates conversion to Interactive Groom and Generation and reimporting hair curves in the process- combines hair splines (NURBS curves) in case the groom is too heavy (has a lot of hair)
Scripts speeds up the steps described by Epic’s Documentation of how to export xGen hair for UE5 in Alembic file https://docs.unrealengine.com/5.1/en-US/xgen-guidelines-for-hair-creation-in-unreal-engine/
xGen Groom to UE5 Alembic Exporter Script for Maya