Data API Call for model objects?


(Sabry M) #1

Hi everyone,

bear with me - not a developer by trade - if I'm asking a question that has been answered many times before in this forum...:slight_smile:

Is anyone aware of a data API call that will return all model objects (list) from a specified array?

Cheers ...any advise will be gratefully received.

Sabry


(Studioxygene) #2

The one you are looking for is:

api.getNodeMap( function ( err, nodes ) {
    if ( !err ) {
        console.log( nodes );
    }
});

You can find all function here by the way :
https://sketchfab.com/developers/viewer/functions#api-getNodeMap


(Sabry M) #3

Thanks mate - much appreciated!