Annotation load on Focus


(Tadiraman) #1

Hi,

I try to load a model using sketchfab-viewer script to make use of events.
I am trying to load an annotation when its being focused(basically when you see the blue circle).

I tried to do something like but did not work.
api.addEventListener('annotationFocus', function (index) {
api.goToAnnotation(index);
});

Is there a way to do what I am trying to achieve?

Thanks
Raj


#2

Hi Raj,

I'm not sure I understand what you are trying to achieve. The annotationFocus event fires when the annotations is reached and opened.