• I have a webpage that loads a KRPano page with several hotspots, but i'd like certain hotspots to be in focus within view, based on which hotspot was clicked in the previous page. I know I can use the lookat(), lootkto() or looktohotspot() functions to do this. But how do I include these as url parameters for the krpano page to focus on a hotspot, on-load?

  • I believe that you want to roughly:
    Define a variable of string type, globally. Add to every hotspot set(variable, nameonexthotspottolookto). Then define lookto get(hotspot[nameofnexthotspottolookto].ath, 0) in your next scene onloaded.
    This may be very rough as I too am learning.

    If I understood OP correctly, something like this will do it. It will keep a record of the next hotspot to be in the view when a hotspot is clicked and then set the view looking to that hotspot, when the new scene has loaded. Did I understand you right, OP ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!