Hi all
I'm trying to get and set variables that are nested.
I can do this in this instance:
<level_1 name="pano66">
<level_2a id="pano66_level_2a" h="0.1" v="-0.1394" fov="0.3984" limitview="limitrange" maxpixelzoom="1.0" transition="smooth(0.5, 0.8, 20)" />
<lavel_2b id="pano66_level_2b" h="0.0" v="0.0" fov="1.0" fovmax="1.0" />
</level_2>
thus get(level_1[pano66].level_2a.id) returns "pano66_level_2a"
and get(level_1[pano66].level_2a.limitview) returns "limitrange"
and get(level_1[pano66].level_2b.id) returns "pano66_level_2b"
which is what I expect, and is OK.
Here is an example of what I'm trying to access (generated by a well known tour generator) :
<scene name="pano66"
...
titleid="pano66_title"
descriptionid="pano66_description"
multires="true"
planar="true"
full360="false">
<panoview h="0.0000" v="-0.1394" fov="0.3984" hmin="-0.5" hmax="0.5" vmin="-1.0526" vmax="1.0526" fovmax="90" />
<view fisheye="0"
limitview="range"
maxpixelzoom="1.0"
fovmax="90"
fov="0.3984"
hlookat="0.0000"
vlookat="-0.1394"/>
<!-- image stuff here ... -->
</scene>
Display More
I can access variables at the <scene> level with this
get(scene[pano66].titleid) returns "pano66_title" which is fine.
When I try to access variables at the <view>, or <panoview> levels, I get a "null" value - for example
get(scene[pano66].view.limitrange returns "null" instead of "range"
and
get(scene[pano66].panoview.fovmax returns "null" instead of "90".
Any ideas how to get and set these values??
Regards