#AnimationPlayer for each animation in .blend file?

3 messages · Page 1 of 1 (latest)

fathom harness
#

Hi Godotians,
is it possible to import .blend file with multiple animations
so that each animation will have it's dedicated AnimationPlayer?
Is creating an import script a way to go?

I'm really keen on making blender>godot pipeline streamlined to the maximum.
I know about manually saving animations from blend file. But this forces me to do additional work after import which isn't exactly what i'm looking for.

queen thunder
#

Hi there 😊,

Yes, an import script would be the right place to reduce manual steps.

I presume if you create a tool script which does the initial split of an AnimationPlayer into multiple ones you can use it for importing and changing already imported resources. (E.g. clicking the node and have a new popup to "split this" as an editor script).

I recommend taking a look at AnimationMixer, which contains the AnimationLibrary you want to split and is the base class of AnimationPlayer. Not sure if duplicate() works out-of-the-box for all involved components or if you have to duplicate the involved parts yourself via code.

https://docs.godotengine.org/en/latest/classes/class_animationmixer.html#class-animationmixer-method-get-animation-library

May I ask why you want to split animations on their own player each? I presume this might lead to concurrency issues if the players are not synced correctly in usage and frankly, though I think it should be possible to do this, I have no knowledge if this actually has been done or is supported.

ebon root
#

is there a reason you need a seperate animation play per animation. only thing i can think of this would be needed for is your work flow in the engine isnt optimized. not the tools itself. like for example makeing 4 character in 1 blend file and importing it instead of make 4 seperate blend files for each character(exagerated reason to need the animation players)

but if your lets say importing 1 character via blend file, you can refer to each animation seperate within a single animation player. dont need a seperate player/animation

think of it as a tree

playerAnimation
jump
run
etc

your asking for

playerAnimation1
jump
playerAnimation2
run
playerAnimation3
etc

based on what youve requested and wouldnt be omptimal