AllForum Posted September 15, 2014 Share Posted September 15, 2014 Hello, Again a beginner (js +babylon) question... 1- After importing a scene from a file with BABYLON.SceneLoader.ImportMesh I want to do a for loop to manage my meshes (adding action, checking tags, etc). But scene.meshes is sometimes/often (!) empty. And the scene is well drawn.When can I access to the scene mesh array ? Is there a sample somewhere ? 2- To learn I modify a lot my html file and my test.babylon file (I change the content of the file to switch between a basic file and a more complex one). But the browser does not always update properly. I tried shift+F5 in the browser or restart my local IIS server.What is the correct way to refresh after modifying the html file or the geometry file ? Thanks for advices. Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 15, 2014 Share Posted September 15, 2014 Hi, 1. You should check the imported meshes in the callback function of ImportMesh, and only here. Maybe you are using not it correctly : is it possible to look at your code ? 2. Try to use CTRL-F5. In the dev console, it should be a option 'do not take into account cache when dev console is open'. If your babylon file is using a manifest file, try to remove it to avoid the save in local storage. Cheers, Quote Link to comment Share on other sites More sharing options...
AllForum Posted September 15, 2014 Author Share Posted September 15, 2014 1. You should check the imported meshes in the callback function of ImportMesh, and only here.You answer to my question because in the callback it works. I will try 2-. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.