I think i just stumbled upon another bug in the new krPano release 1.0.8.14.
Until now i used the following script to make a certain hotspot visible.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<action name="hide_all_hotspotCaptions_except">
<!--showlog(true);-->
set(hotspotNumber, %1);
for(set(i,0), i LT hotspot.count, inc(i),
set(hotspotStyle, get(hotspot[get(i)].style));
if(hotspotStyle=="captionHotspot",
if(i != hotspotNumber,
<!--Ausblenden-->
set(hotspot[get(i)].visible, false);
,
<!--Einblenden-->
set(hotspot[get(i)].visible, true);
);
);
);
</action>
|
But now all this action does, is making all hotspot invisble. This is because the check for ' if(i != hotspotNumber)' ALWAYS returns false. And to make things worse, this only mailfunctions on my Android-Devices. My iPad and the other iDevices don't seem to be bothered by this. With them, all except the selected one are becoming invisible.
In my testing i also assessed, that things like the following don't work (anymore):
|
Source code
|
1
2
|
set(hotspotNumber, 7);
set(hotspot[get(hotspotNumber)].visible, true);
|
or
|
Source code
|
1
|
set(hotspot[get(7)].visible, true);
|
or
|
Source code
|
1
2
3
|
for(set(i,7), i LT 8, inc(i),
set(hotspot[get(i)].visible, true);
;
|
And now (to top it all) this last example DOES work (but it's useless to me)
|
Source code
|
1
2
3
|
for(set(i,0), i LT 8, inc(i),
set(hotspot[get(i)].visible, true);
;
|
This works, until i set i to 4. Then it suddenly stops.
Anyone a solution for this? Help would be pretty much appreciated. I'm starting to go grey...again...