0
$\begingroup$

I think I've read all the NLA/GTLF export posts in here, but none of them seem to talk about the issue I'm having.

I'm creating a pop-up book that will be controlled within a WebAR experience by pressing a "turn page" button. Each time the button is pressed, it runs the animations in the .glb file named "turn_1", "turn_2", "turn_3", etc. Since every page element has to pop up when its page is reached, then animate back down on the next turn, and also have an animation for staying down for all the page turns before and after, it means I have to add an NLA track to every single object for every page turn.

Luckily it's just a 6-page book, but it's still proving to be very complicated and overly tedious. I've found ways of making the process more manageable, but there's something that seems like a bug that's making it more complicated that it seems it should be:

For the animations that are basically just a single keyframe which tells an element to just stay at 0-0-0 rotation, I had thought I'd be able to just make one Action with a 0-0-0 rotation keyframe, and name it "Sit Still" or whatever, then just re-use it for every element before and after its pop-up and pop-down animation. Because I'm always pushing it down into an NLA and naming it accordingly as mentioned before ("turn_1", "turn_2", etc).

But the issue I'm running into is after the first use of it on an object, then next one is either ignoring it, or flipping it 180-degrees, it's difficult to figure out exactly what's happening... but it's no staying at 0-0-0. The only workaround I've found is to duplicate the action 6 times and name it with "STILL-A", "STILL-B", "STILL-C" at the end of the Action's name etc, and for each object never use the same exact action more than once.

That works fine for basic elements that are only being animated to rotate on a single axis, but I have a lot of rigged objects that have to have custom armature animations. This means if I were to use this workaround, I'd have to create 6 different copies of the same "Sit Still" armature animations for every rigged object. The number of actions is getting out of control, and is turning into a huge headache.

My question is this, is this a bug? Or is there some way to re-use the same action for multiple NLA track in the same object, and I'm just doing something wrong?enter image description here

$\endgroup$
2
  • $\begingroup$ The glTF exporter actually only cares about actions. It only uses NLA tracks to organize metadata about actions: which action goes on which object, which actions are part of the same animation, and what the name of that animation is. That's why reusing actions in different tracks, multiple strips in a track, etc. doesn't work. I don't have a good solution for you. IMHO the glTF animation exporter is rather difficult to understand and use outside of simple cases. $\endgroup$
    – scurest
    Dec 5, 2022 at 20:15
  • $\begingroup$ Eek! Okay well, that's excellent information to have, so thank you! At least I know now why it's not working, since I was under the assumption that the NLA name was what it was changing each action into in the final .glb file. Guess not! $\endgroup$
    – Greg D.
    Dec 5, 2022 at 20:18

0

You must log in to answer this question.

Browse other questions tagged .