glTF-Blender-IO
glTF-Blender-IO copied to clipboard
Importing custom properties from glTF animations
Is your feature request related to a problem? Please describe.
Currently, extras
stored alongside glTF animations are ignored on import. This is asymmetric with export behavior, which exports custom properties of Blender actions as animation extras
. Ultimately, it keeps us from being able to use animation extras in our tooling.
Describe the solution you'd like Import glTF animation extras as custom properties on their equivalent Blender actions.
Describe alternatives you've considered I've written a work-around plugin to accomplish this, linked here: https://github.com/naclomi/blender-gltf-import-animation-extras I'm happy to port this to the main plugin itself, but I'm not sure if my plugin is taking the right approach; currently I'm iterating over all of the values stored in the action cache on import, and setting identical properties on each of them. I don't really understand how a glTF animation can result in multiple Blender action objects, though, so if possible I'd love another set of eyes on this.