Hello,
When I try this, it works fine:
krpano.call("addhotspot(myhotspot);");
krpano.call("set(hotspot[myhotspot].point[0].ath,-10)");
krpano.call("set(hotspot[myhotspot].point[0].atv,-10)");
But when after creating the hotspot I get its instance to do this:
krpano.call("addhotspot(myhotspot);");
var hs1=krpano.get("hotspot[myhotspot]");
hs1.point[0].ath=-10;
hs1.point[0].atv=-10;
I get this error:
Property 0 not found in krpano.Kinterface.Kinterface_array and there is no default value.
It seems to be about the point array doesn't exists but I can't understand why the second method is different than the first one.
Any help would be appreciate