# Current frame animation

**URL:** <https://forum.babylonjs.com/t/current-frame-animation/12070>\
**Category:** Questions\
**Created:** [June 29, 2020, 6:42pm UTC](https://forum.babylonjs.com/t/current-frame-animation/12070 "2020-06-29T18:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robgua](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@robgua](https://forum.babylonjs.com/u/robgua)\
**Post date:** [June 29, 2020, 6:42pm UTC](https://forum.babylonjs.com/t/current-frame-animation/12070/1 "2020-06-29T18:42:34Z")

</div>

Hi,  
can I print in console the current frame of an animationGroup of my glb file like inspector? ![Schermata 2020-06-29 alle 20.36.17](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/bd982084d07a5c0f50494bf53afebd5e2c0d3410.png)

thanks

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 29, 2020, 6:54pm UTC](https://forum.babylonjs.com/t/current-frame-animation/12070/2 "2020-06-29T18:54:16Z")

</div>

The inspector displays a property called masterFrame which is available on the animatable objects like morph targets animations and so on 🙂

---

<div class="post-metadata">

**Author:** ![robgua](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@robgua](https://forum.babylonjs.com/u/robgua)\
**Post date:** [June 30, 2020, 8:11am UTC](https://forum.babylonjs.com/t/current-frame-animation/12070/3 "2020-06-30T08:11:08Z")

</div>

In this playground [Babylon.js Playground](https://playground.babylonjs.com/#AGBU24),  
when click play animation I would like it to execute an event at a certain frame (from line 87 to 95) but not work.  
I have tried to implement the code with mastreFrame but this also doesn’t work.  
could you help me?

thanks

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 30, 2020, 12:05pm UTC](https://forum.babylonjs.com/t/current-frame-animation/12070/4 "2020-06-30T12:05:54Z")

</div>

It is because you need to start the animation after adding the event:

[https://playground.babylonjs.com/#AGBU24#1](https://playground.babylonjs.com/#AGBU24#1)

---

<div class="post-metadata">

**Author:** ![robgua](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@robgua](https://forum.babylonjs.com/u/robgua)\
**Post date:** [June 30, 2020, 1:10pm UTC](https://forum.babylonjs.com/t/current-frame-animation/12070/5 "2020-06-30T13:10:36Z")

</div>

I really appreciated your help. Thank you very much
