Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Sketchfab hide and show ID not clear

How do I get the sketchfab hide and show object ID? I’m confused and help would be greatly appreciated. I’ve searched in blender and stuff but I couldnt find it. Currently I’m doing

func hideshow() {
if (hiding == true) {
api.hide(myNode, function(err) {
    if (!err) {
        window.console.log('Hid node', myNode); // 114
    }
});
} else {
api.show(myNode, function(err) {
    if (!err) {
        window.console.log('Showed node', myNode); // 114
    }
});
}
}

but mynode isnt clear how you are supposed to get it

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I have experience with the sketchfab API, and what you are attempting is quite simple. All you need to do is find the InstanceID of an object, found with getNodeMap, like so:

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

You can find the Sketchfab documentation which will help you very much along your journey, here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading