To play the animation, you can call plugin.managers.animation.play(AnimateModelIndex, params). You will not be able to do this from the inlined script in the HTML page though and will need to use a ...