Skip to content

Instantly share code, notes, and snippets.

@GK-GreyGhost
Created November 18, 2022 03:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GK-GreyGhost/061e1b122882108d2304e188a5393320 to your computer and use it in GitHub Desktop.
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
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