Animation.TrackType in Godot 4.2.1 doesn't have a named enum member for value 1, so add_track(1) fails. Use add_track(0) for all tracks - the Animation API accepts both Vector3 and Quaternion values regardless of track type.
Animation.TrackType in Godot 4.2.1 doesn't have a named enum member for value 1, so add_track(1) fails. Use add_track(0) for all tracks - the Animation API accepts both Vector3 and Quaternion values regardless of track type.