When I export my animated meshes from Blender to GLB then import into Babylon.js, the animation group name is always fixed at “Animation”, so importing multiple animated GLBs results in multiple animations all named the same.
Does anyone know if it’s possible to change this name in Blender? I can’t find any way to rename it in Blender.
Thanks for the insights @PirateJC & @JCPalmer but when I have multiple animated meshes that I want to be a part of the one animation on export, I uncheck the (counterintuitive) GLTF export option “Group by NLA Track”. This aggregates the separate animations and in Babylon.js they simply show up as an AnimationGroup called “Animation”, a name I can’t seem to edit anywhere in Blender that I’m aware of.
Outline with multiple animated meshes:
GLTF export settings with “Group by NLA Track” unchecked:
Likely there’s something I’m not understanding when it comes to Blender animation.
If it’s not possible to change this aggregated animation name in Blender I guess I could just change it somehow in code, after the GLB is loaded into Babylon.js.
Actually another little related thing I may as well ask about is animation “frames”. In Blender my animation is 9 seconds long and 250 frames, but in Babylon.js if I’m using animationGroup.goToFrame(x) then x needs to be a float value of the duration not an integer representing the exact frame as I would have expected i.e. for half-way I need to set goToFrame(4.5) rather than goToFrame(125). I can workaround this of course, but confused why this is the case?
For anyone that happens upon this Group by NLA Track question. As of Blender 3.3 I see the following option available, and you can see I changed the name.