I want to list all the scenes and scene attributes like scene name, latitude and longitude position etc from javascript. Is that possible?
How to list scene attributes from javascript
-
-
Hi!
docu - great usefull thing ;)
If I understand right then
https://krpano.com/docu/plugininterface/#getattributesHope it help
Regards
Andrey -
-
Thanks , now i know how to read scene attributes. But how can I list all the scenes in a tour from javascript?
-
Hi! aslak@viatech.no
you don't want to use my advice, sad.
var krpano = document.getElementById('krpanoSWFObject');
// get scene object (list of scenes)
var scenesList = krpano.get("scene");//get one scene
var scene = scenesList.getItem(0);// direct access to attribute
alert(scene.name);// geting all attributes names
var arrayOfAttributes = Object.keys(scene); //standard javascript object methodand so on....
as I said READ DOCU
Andrey
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!