Dynamically setting property in animation track

Godot Version

4.2.1

Question

I have a simple UI animation that scales down a panel, moves it to a button, then changes the panel to visible false and the button as visible true. I want to change the final key in the position track to be dynamically set to the poison of the button.

How do I do that?

I don’t know if there’s a way to change the position of the existing key, but you can remove the key with track_remove_key and add a new one with the new position with position_track_insert_key