How to load just animation groups from a glb into an Asset Container?

Is it possible to load just animation groups from glb files? I am currently loading EVERYTHING from the first glb (mesh, skeleton, animation groups) into an asset container, then creating dummy asset containers for each additional glb that contains more animation groups that I want:

I looked at the docs for ImportMeshOptions but I didn’t see anything about telling it to just import animation groups:

Thanks!!!

1 Like

You can try using SceneLoader.ImportAnimationsAsync instead of loading everything into an asset container. This method allows you to import only animation groups from a .glb file. Have you checked if filtering by animation groups in the ImportMesh options is possible? If not, manually extracting them after loading might be a workaround.

Thank you for the pointers! I took a quick look, didn’t see any filtering options.

ImportAnimationsAsync seems cool but seems like about the same amount of work as using dummy AssetContainers. This is all a workaround for Houdini, by the way, as their glb exporter still doesn’t supprort multiple animations in a glb file, so I have to export the character and the skeleton and the animation for each clip. Yikes!

1 Like