Jump to content

Unable to get current frame of played animation

Varsha Kamble

Recommended Posts

Hi ,

I want to show some progress bar while playing the animations. I am using following code to play all animations within given min-max values


for (let i = 0; i < this._scene.meshes.length; i++) { var animationPlayed = this._scene.beginAnimation(this._scene.meshes, 10, 500, false, 1.0, () => { console.log('Animation loop'); }); console.log('currentFreame',animationPlayed.getAnimations()[0].currentFrame) }

I want to get currently playing animation frame, so that i can assign it to my progress bar.
In above codebase, Log printed to get currentFrame is always returning me 0.
Please help for the same.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...