HELP! "BUTTON" to load a new model in the iframe, possible?


(Iamjaechang) #1

Hi All!

I am wondering if there is an example of an interactive Sketchfab webpage that has a button (or menu) to load a new part in the same spot - basically replacing the current model to new. For example, in the Apple watch configurator, can I add a button to load iPad without loading a new page? I hope it make sense.

Thanks,


#2

If you want to replace one model iframe with a new model iframe, see the example here: https://blog.sketchfab.com/viewer-api-part-1-introduction/

If you want to do it within a single iframe, you need all your parts to be uploaded to the same scene, then you can hide and show parts with the Viewer API. https://sketchfab.com/developers/viewer