Forum

Project Manager: Additional HTML files

Project Manager automatically creates html/css/js files only once at the time of project creation. If I later add a blend file to the project, I have to manually export the json and manually create html/js files. My intention is to have each scene in a separate html/js file rather than pack everything in one file. This is to reduce load time at the start of the project.

Also user will only load a scene if he chooses it and need not load all the scenes.

But creating the html/js files manually and changing the path names is a real pain in the ***

Would it help to keep the same HTML and JS, then load various scenes? I once did a large project that had 20 or so little scenes that I just loaded on demand. The project used the JSON web player but you should be able to do the same thing.

My intention is to have each scene in a separate html/js file rather than pack everything in one file. This is to reduce load time at the start of the project.Also user will only load a scene if he chooses it and need not load all the scenes.

But problem is, the view is not changing. It is stuck in "Scene.001" which is the first(default) scene.

scene.set_active doesn't change the view automatically, in fact you can't do it at all. If you want to change the view, you have to do it manually by placing the camera from the default scene into the position of other cameras. I think you can do it via the get_tsr/set_tsr methods: