You are not logged in.

1

Wednesday, December 11th 2019, 5:36pm

Hotspot Look At

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?

Scott Witte

Intermediate

Posts: 299

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

2

Wednesday, December 18th 2019, 5:09pm

I'm having trouble understanding exactly what you are trying to do.

3

Thursday, December 19th 2019, 6:01pm

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 ?