Benutzerinformationen überspringen
Beruf: krpano freelancer || creating ideas & coding them || krpano developer
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
var krpano = document.getElementById("krpanoSWFObject");
var time = 3000;
var hotspot_print = "";
scenes_list = krpano.get("scene").getArray();
scenes_list.forEach(function (key) {
setTimeout( function(){
console.log(key.name);
krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))");
setTimeout( function(){
hotspots_list = krpano.get("hotspot").getArray();
hotspots_list.forEach(function (key2) {
//console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url);
hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r";
});
console.log(hotspot_print);
}, 2500);
}, time);
time += 3000;
});
console.log(hotspot_print);
|
Hello Hamid,Hi,
as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)
![]()
Quellcode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20var krpano = document.getElementById("krpanoSWFObject"); var time = 3000; var hotspot_print = ""; scenes_list = krpano.get("scene").getArray(); scenes_list.forEach(function (key) { setTimeout( function(){ console.log(key.name); krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))"); setTimeout( function(){ hotspots_list = krpano.get("hotspot").getArray(); hotspots_list.forEach(function (key2) { //console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url); hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r"; }); console.log(hotspot_print); }, 2500); }, time); time += 3000; }); console.log(hotspot_print);
Thanks,
Hamid
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »sakshi« (10. Mai 2021, 23:43)
Benutzerinformationen überspringen
Beruf: krpano freelancer || creating ideas & coding them || krpano developer
Hello Hamid,
Hi,
as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)
![]()
Quellcode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20var krpano = document.getElementById("krpanoSWFObject"); var time = 3000; var hotspot_print = ""; scenes_list = krpano.get("scene").getArray(); scenes_list.forEach(function (key) { setTimeout( function(){ console.log(key.name); krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))"); setTimeout( function(){ hotspots_list = krpano.get("hotspot").getArray(); hotspots_list.forEach(function (key2) { //console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url); hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r"; }); console.log(hotspot_print); }, 2500); }, time); time += 3000; }); console.log(hotspot_print);
Thanks,
Hamid
Hello Hmaid i tried scrpit, but that not working
Hello Hamid,
please check below link
https://www.opsaop.com/360/?startscene=casa1-fachada
when i take this link to landscape fullscreen search result disappper please help
RegardsHi,
as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)
![]()
Quellcode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20var krpano = document.getElementById("krpanoSWFObject"); var time = 3000; var hotspot_print = ""; scenes_list = krpano.get("scene").getArray(); scenes_list.forEach(function (key) { setTimeout( function(){ console.log(key.name); krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))"); setTimeout( function(){ hotspots_list = krpano.get("hotspot").getArray(); hotspots_list.forEach(function (key2) { //console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url); hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r"; }); console.log(hotspot_print); }, 2500); }, time); time += 3000; }); console.log(hotspot_print);
Thanks,
Hamid