Hate to have to bring this back from the dead but I'm still having issues with the correct syntax to get this to work. Part of the issue is that this needs to be an external call to krpano.
Here is the script I'm using to get the hlookat value:
function getlookat() { var hlookat = Number( krpano().get("view.hlookat") ); document.getElementById("hlookat_a").value = hlookat.toFixed(2); }
I've tried:
var hlookat = Number( krpano().get(adjusthlookat("view.hlookat"));
And other variations to no avail. Anyone have any suggestions?