The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

How to play animation of a 3D model in godot engine using GDScript.
Suppose I want to play walk animation of my character imported from Blender

Something like that,

player.animation.play("walk")

Is there anything like it?

in Engine by (14 points)

Sure!

get_node("AnimationPlayer").play("walk")

1 Answer

+1 vote

I think when you import models with animations into Godot, they get imported as a scene with an AnimationPlayer in it. I guess you then have to get that node and use it to play animations, using the names you gave them.

If you don't see any AnimationPlayer in the imported scene, maybe the format you used for your model doesn't support them (like OBJ). If that's the case, try another format like GLTF or Collada (DAE).

I'm not experienced in that area though, you could have a look at this doc explaining the whole workflow: http://docs.godotengine.org/en/3.0/getting_started/workflow/assets/importing_scenes.html

by (29,360 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.