I want to automate my post-import process for my game animations.
Currently I choose Import as Animation Library for my .blend file.
Then inside the advanced importer I check keep custom tracks for each animation, and set the animation save paths to /raw/.
The issue is I want to add more automation to this process.
I want every single animation to keep custom tracks, and I don’t want to manually enable this on a per-animation basis.
I also want all animations to import as an AnimationLibrary, storing the animations to file in a folder named raw in the same directory as the library.
I also need to duplicate and mirror animations ending in _left or _right so I can play them for either side.
Lastly I want to automatically delete animation resources no longer present in the imported scene. For example if I import attack_1 and attack_2, but then I remove attack_2 from the .blend file, I want the import process to automatically remove the attack_2 resource from file and the library.
I’d like importing like this to be the same as the built-in AnimationLibrary, with an option inside the import window to Import as Custom Animation Library or something along those lines.
I am not looking for handholding on this topic, or for someone to just make it for me. I am just confused on one particular part, which class/method do I use to do this import process?
From what I can see there are three options: post-import scripts, EditorImportPlugin, or EditorScenePostImportPlugin.
From reading other posts on this forum, it appears that post-import scripts lack the ability to set keep custom tracks.
This leaves EditorImportPlugin and EditorScenePostImportPlugin.
I have been told in the Godot Discord that EditorImportPlugin is more for importing custom file types which Godot does not support out of the box. This leads me to believe I should use EditorScenePostImportPlugin, but there is no documentation for using this class.
Can I just use the same methods as the documentation for EditorImportPlugin, or is there somewhere I should look to learn how to use EditorScenePostImportPlugin?
Thanks for any guidance on this topic.