Autoplay animation outside sandbox?

Please note I am new and the documentation is hard for me to understand as I am not much of a scripter. So, if I’m just in over my head I get it and apologize ahead of time.

I have a simple animation created in 3dsmax and exported with the babylonjs exporter. It uses animated baked verts on 27 or so boxes in a single animation, simple stuff. When I load the .glb in the sandbox the baked animation automatically plays, which I like a lot. When I embed the glb into a viewer, the animation doesn’t automatically play. I’ve tried other GLB viewer websites online and they all automatically play the animation, but when I try to embed it into my site it doesn’t play automatically. You’re probably thinking “just hit the play button” but I actually have that hidden via CSS because I am using the glb as a graphic, not as something I want users to pay too much attention to.

I’m not really sure what I should be trying to do to resolve this. I have managed disable the ground and skybox through commands in the babylon tag but playing seems to require something I am clearly missing. Do I need to target it with javascript? Is that possible to do in the way that I am embedding it? Or maybe I’m just not loading some script needed to autoplay? Thanks for any general tips. I do realize this must be quite the noob question.

This thread is discussing about auto start for the viewer animations Babylon.js Viewer - methods and properties - #7 by Shamsail

1 Like

I appreciate the reply, thank you. So many of those links are broken, but I was able to cobble something together from the UFO example after searching github for it. Thanks!