Gltf-blender-io: Merge NLA tracks with the same name.

Created on 19 Jun 2019  Â·  12Comments  Â·  Source: KhronosGroup/glTF-Blender-IO

When multiple NLA tracks share the same name, they should be exported as a single glTF animation.

Animation enhancement exporter

Most helpful comment

Fixed in 8a38eca

All 12 comments

Hmm how do you get multiple NLA tracks share the same name? I find there is no way to do that, If I try to set the name of a track with the same name of an existing one Blender appends ".001"
image

Also there should be 2 options to export the animations
1) export what the timeline currently has (this would be a simple mode)
2) export the NLA tracks (advanced)

The default should be the mode #1, otherwise many people will think the animations are not working.

how do you get multiple NLA tracks share the same name?

In the screenshot you've renamed the Action, not the NLA track. NLA tracks can share names:

Screen Shot 2019-08-01 at 1 30 50 PM

Also there should be 2 options to export the animations

I'd be OK with this, assuming we can get "what the timeline currently has" from the Blender API reasonably. I guess that's the active Action on each object, all merged into a single playable animation in the glTF file.

When multiple NLA tracks share the same name, they should be exported as a single glTF animation.

I have two NLA tracks sharing the same name. Still see two separate animations when I load the .glb in BabylonJS. Is this feature working or am I doing it wrong?

No, the feature has not been implemented – this issue just tracks the discussion.

OK. Thanks, Don! Having a single track for multiple, separate objects will be greatly appreciated (and seems kind of necessary given you can do this exact thing in Maya using the Babylon exporter). Currently there's no easy solution for what seems like bread-and-butter functionality. Short of combining objects, creating an armature and going through the process of skinning and weighting, I can't find a way to easily get multiple animated objects on one exported track.

Is there a timeframe for this feature? Or any insight into how timeframes get decided?

My goal is to get it before the feature freeze of v2.81, planned for mid-september

A first draft is available here: #637
Not ready to be merged yet

Fixed in 8a38eca

@julienduroure Did you have a Blender test file that you were using for this? I'm just wanting to understand how to set things up properly,

Here is a really simple file where an armature and a shapekeys are merge into a single animation at export, because of the name of the track:
merge_animation.zip

image

Was this page helpful?
0 / 5 - 0 ratings