How to access recording status in script api?

Is there any callback in script api to listen to recording status like on recording start and finish? I want to play an animation on start of recording.

Screenshot 2023-09-20 at 20.31.31
Hi, we don’t have a ready made callback for that but there is an animation trigger you can use to switch between states on a dummy animation controller and use the state changed callback