Hi guys! Sorry if I understand you wrong about "get/access" for a scene's atributes, but the following stuff seems to work:
the modified "startup action:
|
Quellcode
|
1
2
3
4
5
|
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
set(panonumber,1);
</action>
|
an event to trigger a check on every new pano:
|
Quellcode
|
1
|
<events name="check_pano_data" keep="true" onnewpano="check_pano();" />
|
and the action itself:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<action name="check_pano">
add(panonumber,1);
if(panonumber GT 4,
set(scene[get(xml.scene)].title, null);
set(scene[get(xml.scene)].thumburl, null);
set(scene[get(xml.scene)].lat, null);
set(scene[get(xml.scene)].lng, null);
set(scene[get(xml.scene)].heading, null);
);
showlog();
trace(title=,scene[get(xml.scene)].title);
trace(thumb=,scene[get(xml.scene)].thumburl);
trace(latitude=,scene[get(xml.scene)].lat);
trace(longitude=,scene[get(xml.scene)].lng);
trace(heading=,scene[get(xml.scene)].heading);
</action>
|
The idea is that after you went through four panoramas, the title, thumburl, latitude, longitude and heading are set to "null". And I see in the log that traces return corresponding values and "nulls" after fourth loaded pano.