this is a misunderstanding of how krpano works
you can NOT access or set other scenes content like this
e.g. if you are in scene 0 ...
you can access attributes of other <scene> elements like :
trace(scene[1].name);
but you can NOT access xml elements inside other <scene> elements :
trace(scene[1].image.depthmap.center); <--- NOPE
processing all scenes in advance in the way you're trying is not possible
it would be possible by altering the scenes content attribute, but then you have do your own xml parsing.
maybe something like this might be an easier solution :
|
Source code
|
1
2
3
4
5
6
7
8
|
<events name="set_depthmap_center" onnewscene="set_depthmap_center" keep="true" />
<action name="set_depthmap_center">
calc(i, scene[get(xml.scene)].index);
trace('scene index = ', i);
txtsplit(get(camera_coordinates[get(i)].value), ',', coordinates_per_camera);
calc(image.depthmap.center, coordinates_per_camera[2].value*-1 + ',' + coordinates_per_camera[1].value + ',' + coordinates_per_camera[0].value);
trace('depthmap center = ', image.depthmap.center);
</action>
|