The documentation states that array contains objects, not values so I should be able to story my hotspots in the array and access hotspot attributes but I am so so confused about the correct syntax:
addhotspot(get(hname));
set(hotspot[get(hname)].ath, 0.2);
<!-- setting the first element of the array to the new hotspot -->
set(arr[0], get(hotspot[get(hname)]));
trace('hotspot=', arr[0]);
trace('hotspot ath=', get(arr[0].ath));
trace('hotspot ath=', arr[0].ath);
I get:
hotspot = [object krpano_hotspot]
hotspot ath = null
hotspot ath = arr[0].ath
Why am I not getting 0.2, which is the 'ath' of that hotspot?