Loading files into viewer by clicking on link in popup

Actually, the pop-up part is not such a mystery in the example that I am working on … when the link in the left hand drawer is clicked, a popup is called and this reads the JSON file that holds the model info. This then changes the state of the state variable (setFilename) that is set in App.js. I haven’t had to touch that part of the code. I know that it is selecting the correct info as there is also a download model link that uses the popup for selection - and it downloads the .glb file fine. Sending it to the viewer is the real headache that I am having. Thank you again for your help… your examples and knowledge are much valued and great to learn from.

2 Likes