0 votes

I have no clue where the error comes from.
it shows in line:

 _anim.track_set_key_value(0, 1, 0.5)

E 0:00:33.033 tracksetkeyvalue: Condition "arr.size() != 5" is true.
<C++ Source> scene/resources/animation.cpp:1360 @ track
ChooseCar.gd:725 @ onBackTextureButton_pressed()

var anim_player: AnimationPlayer = get_node("AnimationPlayer")
var _anim_list: Array = anim_player.get_animation_list()
var _anim: Animation = anim_player.get_animation(anim_list[0])
_anim.track_set_key_value(0, 1, 0.5)

Can You explain me?

Godot version 3.4.2
in Engine by (78 points)
edited by

1 Answer

+1 vote

Problem solved.
I'm so stupid.
The solusion is I used bezier tracks.
the correct line is:

_anim.bezier_track_set_key_value(0, 1, 0.5)

I leave the question. Maybe it will save somebody 4 hours searching what went wrong....

by (78 points)
edited by
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 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 webmaster@godotengine.org with your username.