Using seekTo/similar functions causes error

(Joshrayman) #1


I’m currently using the SketchFab API to control the movement through a model, and although I am using api.setCameraLookAt with no problems, when I tried to use api.seekTo it throws an error, that this._getFeatureModel(“animation”).getCurrentAnimation() is undefined.

I can’t see any way to call this differently, so any ideas?


(Rémy Bouquet) #2

Hello, could you please post a link to your model and maybe a snippet of your code?
Also, make sure

  1. the model has at least an animation.
  2. the model has an animation currently playing.

In any case, I reckon the error message could be a bit more informative.