AnimationPlayer has properties locked after animation finished playing

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GreatCornDev

I have a Spatial with an AnimationPlayer node. Certain properties get animated (e.g. rotation) and then after the animation finishes, the properties should be modified through script. However, the properties keep setting back to their values which were on the last frame of the animation. Any way to stop this other than creating animation-intended parents for the objects?

Could you please show your script that’s meant to change the Spatial properties?
I have just tried this and had no issue scripting after the AnimationPlayer finished — in fact, I could mess with the rotation while the animation was still playing.

Yuminous | 2021-07-12 10:46