When I enter vr mode, I have the following block to turn on the VR only hotspots in the tour:
Code
<action name="showVRHotspots"> for(set(i,0), i LT hotspot.count, inc(i), set(hotspot[get(i)].visible, false); if(hotspot[get(i)].tag == vr, set(hotspot[get(i)].visible, true); ); error("-----"); error(hotspot[get(i)].tag); error(hotspot[get(i)].tooltip); error(hotspot[get(i)].name); error(hotspot[get(i)].visible); error("-----"); if(hotspot[get(i)].tag == vr_menu, set(hotspot[get(i)].visible, true); ); ); </action>
Grr, the code block keeps dismissing newlines....
The problem is some of the hotspots with a "vr" tag don't get their visible set to true. The error output show "ERROR: hotspot[get(i)].tag" instead of the tag name. The hotspots that work correctly actually resolve that to the correct tag.
What can I do to make sure the krpano variable always gets resolved?
Thanks