You are not logged in.

1

Monday, April 18th 2011, 3:29pm

How to get own variable from krpano?

Hi!
I ma new with krpano, and need to take some variables from it to javascript, if i take some things like mouse.x mouse.y it's ok. But if i want to take own variables for example after screentosphere(mouse.x,mouse.y,toh,tov); i try to take toh tov, var toh= krpano.get("toh"); var tov=krpano.get("tov"); and recieve null =(
Thanks for help.

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, April 18th 2011, 4:28pm

krpano.get("toh");

Looks like nothing's wrong with the javascript.
Try ensuring they are actually there when you try to get them

trace(get(toh));
from krpano

http://www.seeit360.net/jstest/

http://www.seeit360.net/jstest/tour.xml


If you click the bottom one, you see it correctly returns this custom var from krpano fine.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour