Hi,
So I found one possibility to switch to another scene from my index.html. Still, it feels like an un-perfect method to do this.
How I did it, example;
I added an ID to all the defined scenes
<a href="javascript:void(0)" class="scene" data-id="5-room1_main_dooropen" id="opendoor">
<li class="text">room1_main_dooropen</li>
</a>
Then I added a simulation of a click on the link in javascript, later in the code;
$('#opendoor')[0].click();
So when I simulate the click it switches to the "opendoor" scene.
Still wondering if there are any other ways to reach the "switchScene" function from the index.html file.
(will continue looking for other ways)
greetings
Joost
Op za 7 aug. 2021 om 18:24 schreef Carlos Eduardo G. Carvalho (Cartola) <
cart...@gmail.com>: