Using AnimationPlayer to set Player rotation during cutscene, how to keep rotation value upon animation finished?

Godot Version

4.6.1

Question

Hello, I am a beginner coder making a small game that includes some in game cutscenes. For my 3D character controller, I followed this GDQuest youtube tutorial: https://youtu.be/JlgZtOFMdfc

I made an opening cutscene that has my character rotated in a specific direction. I rotated the skin node in the animation player to the desired direction in my map. The issue is once the animation is complete, the skin spins in place to the last input direction, which in this case is y = 0. Other property tracks do not reset upon the animation concluding, just the player’s y rotation.

In the player_3d_template.gd code, line 97 appears to cause this, but I am unsure how to fix the issue.

I was able to recreate the issue in the GDQuest file, which I have zipped here: AnimPlayerRotationIssues – Google Drive

There is a video of the issue in the linked folder as well (the spinning camera is just a visual indicator for the animation playing, once the cam stops spinning you can see the Player rotating).

Is it possible for the Player to adopt the y rotation from the AnimationPlayer when the animation is concluded, allowing it to otherwise run normally, just beginning at a different y rotation in the game scene?

Thank you for any help or suggestions!