Created
November 18, 2022 03:31
-
-
Save GK-GreyGhost/061e1b122882108d2304e188a5393320 to your computer and use it in GitHub Desktop.
extracts animations from downloaded mixamo fbx files and puts them into one AnimationPlayer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends AnimationPlayer | |
tool | |
#put all your downloaded fbx files from mixamo into scenes | |
export(Array,PackedScene) var scenes = [] | |
func process_file(packed:PackedScene): | |
var scene = packed.instance() | |
var ap2:AnimationPlayer = scene.get_node('RootNode/AnimationPlayer') | |
for anim in ap2.get_animation_list(): | |
var animation:Animation = ap2.get_animation(anim) | |
self.add_animation(scene.name,animation) | |
func _ready(): | |
for scene in scenes: | |
process_file(scene) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment