Search code examples
3dannotations3d-modelling

Create sketchfab annotations with API


Our company would like to use the Sketchfab API to show building constructions to clients. This works perfect, but we would like to use the feature to create annotations on the 3D models within Sketchfab.

I couldn't find anything about creating/editing annotations with the API they provide. This is possible on the site itself.

Does someone know how to create those annotations with Sketchfab from another site (embedded or with API), or knows about a 3D web modelling program/framework which can do that?


Solution

  • This is now possible with new annotation functions:

    https://sketchfab.com/developers/viewer/functions#api-section-annotations

    Annotations are notes positionned in 3D space. They allow authors to provide information on a specific part of the model and tell a story.

    Specifically https://sketchfab.com/developers/viewer/functions#api-createAnnotation

    createAnnotation( positionStart, positionEnd, eye, target, title, text, callback, [callback] )
    

    Create the annotation with the given parameters. Callback will be passed (err,index).

    And also https://sketchfab.com/developers/viewer/functions#api-updateAnnotation

    updateAnnotation( index, {title: title, content: content, eye: eye, target: target}, [callback] )
    

    Updates the annotation information for the given index. Callback will be passed (err, information).