add bone flattener

This commit is contained in:
2025-02-27 01:57:20 +10:00
parent fa18cbd3b7
commit 02e18694d5
7 changed files with 565 additions and 285 deletions

View File

@@ -0,0 +1,17 @@
## https://forum.godotengine.org/t/how-to-set-all-3d-animation-tracks-to-nearest-interpolation/22056/4
@tool
extends AnimationPlayer
func _ready() -> void:
interpolation_change()
func interpolation_change() -> void:
for animation in get_animation_list():
var anim_track_1: Animation = get_animation(animation)
var count: int = anim_track_1.get_track_count()
for i in count:
anim_track_1.track_set_interpolation_type(
i, Animation.INTERPOLATION_NEAREST
)