Open marwie opened 1 month ago
Is this expected?
Yes, it is "expected". gather_actions_hook is called when using "actions" animation mode, as the name of the hook indicates. Using SCENE mode does not check any action or NLA or any data model related to animation. It only bake the scene animation as it can be seen on viewport.
But ... we can probably add a hook to help you achieve what you want. Once again, there is no actions here. What can be done during the "SCENE" animation mode export:
Describe the bug I'm trying to export KHR_animation_pointer programmatically and noticed that the
gather_actions_hook
isnt invoked anymore when enabling the following settings:Is this expected?
It currently breaks cases where I listen to animations being done exporting so that I can resolve json pointers to the correct animation index in the resulting glTF. (Maybe it's possible to resolve the pointers later in the process but I need access to both the the blender_action<>gltf_animation objects which is what the hook above provides)
To Reproduce Steps to reproduce the behavior:
def gather_actions_hook(self, blender_object, params, export_settings):
export_animations: True
export_animations: True
and setexport_animation_mode: SCENE
+export_pointer_animation: TRUE
Expected behavior gather_actions_hook is always invoked
.blend file/ .gltf (mandatory)
anim.zip
Version